Skip to content

Commit

Permalink
Update GitHub Actions workflow configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerroDevs committed Jan 21, 2025
1 parent 039ebab commit 0d7c0a8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@zerrodevs'

- name: Configure npm
run: |
echo "@zerrodevs:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc

- name: Install dependencies
run: npm install

- name: Build
run: npm run build --if-present

- name: Publish to GitHub Packages
run: npm publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0d7c0a8

Please sign in to comment.