Skip to content

Commit

Permalink
chore: Update Node version and npm publishing in Github workflow
Browse files Browse the repository at this point in the history
The workflow for the build process has been updated to use Node version '20'. Moreover, the npm publishing step now uses 'JS-DevTools/npm-publish@v3', a more secure method for npm operations. This will ensure authenticated npm operations with environment variable for NPM access token.
  • Loading branch information
juicyjusung committed Jan 31, 2024
1 parent 36c8915 commit b5687ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
registry-url: 'https://registry.npmjs.org'
scope: '@octocat'
- name: Install dependencies and build 🔧
run: yarn install && yarn build
- name: Publish package on NPM 📦
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_ACCESS_TOKEN }}
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

0 comments on commit b5687ac

Please sign in to comment.