Skip to content

Commit

Permalink
ci: nodejs publish process
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehesi97 committed Sep 6, 2023
1 parent 21ba058 commit fa6ee04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# run only against tags
tags:
- '*'
- "*"

permissions:
contents: write
Expand Down Expand Up @@ -33,3 +33,13 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v3
# This sets up the .npmrc file for publishing to npm
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit fa6ee04

Please sign in to comment.