Skip to content

Commit

Permalink
feat: Testing with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed Jun 14, 2024
1 parent 96c1d5a commit c8666d2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com/@amikos-tech' # this is important for the publishing step
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com/' # this is important for the publishing step
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Beta Tag
id: tag
run: |
Expand Down Expand Up @@ -49,6 +50,11 @@ jobs:
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- name: Install Dependencies
run: npm install
- name: Update package.json with organization scope
run: |
ORG_NAME="@amikos-tech"
PACKAGE_NAME=$(jq -r '.name' package.json)
jq --arg org "$ORG_NAME" --arg name "$PACKAGE_NAME" '.name = "\($org)/\($name)"' package.json > tmp.$$.json && mv tmp.$$.json package.json
- name: Publish Package
run: |
set -e
Expand Down

0 comments on commit c8666d2

Please sign in to comment.