Skip to content

Commit

Permalink
fixup working dirs in npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Aug 2, 2024
1 parent d3a039a commit 449e9b6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,28 @@ jobs:
run: sudo make install_dylib
working-directory: getargv
- uses: actions/checkout@v4
with:
path: getargv.js
- run: sed -e 's/@camjn/@getargv/' -i '' package.json
working-directory: getargv.js
- uses: actions/setup-node@v4
with:
node-version: latest
scope: '@getargv'
registry-url: https://npm.pkg.github.com/
- run: npm ci
working-directory: getargv.js
- run: |
echo registry=https://npm.pkg.github.com/ > .npmrc
echo always-auth=true >> .npmrc
echo //npm.pkg.github.com/:_authToken=${{ github.token }} >> .npmrc
working-directory: getargv.js
- run: npm publish
working-directory: getargv.js
env:
NODE_AUTH_TOKEN: ${{ github.token }}
- run: npm config list
working-directory: getargv.js
if: ${{ failure() }}

publish-npm:
Expand All @@ -60,11 +67,15 @@ jobs:
run: sudo make install_dylib
working-directory: getargv
- uses: actions/checkout@v4
with:
path: getargv.js
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- run: npm ci
working-directory: getargv.js
- run: npm publish --provenance --access public
working-directory: getargv.js
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 449e9b6

Please sign in to comment.