Skip to content

Commit

Permalink
ci: publish to NPM on release (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
loderunner authored Dec 3, 2024
1 parent 1a2612e commit b90bff2
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
- name: Release please
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Setup node
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
shell: sh
run: npm ci
- name: Publish to NPM registry
if: ${{ steps.release.outputs.release_created }}
run: npm publish
shell: sh
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit b90bff2

Please sign in to comment.