Skip to content

Commit

Permalink
add npm registry publish
Browse files Browse the repository at this point in the history
  • Loading branch information
karlobencic committed Oct 11, 2024
1 parent 67def7a commit 778d143
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,19 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
- name: Create Release Pull Request and publish to GitHub Packages
id: changesets
uses: changesets/action@v1
with:
version: npm run version
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}

- name: Publish to npm registry
if: steps.changesets.outputs.hasChangesets == 'false'
run: npm publish --registry=https://registry.npmjs.org/ --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 778d143

Please sign in to comment.