Skip to content

Commit

Permalink
chore(ci): add Node setup and npm publish steps to GitHub release wor…
Browse files Browse the repository at this point in the history
…kflow

chore: remove package name
  • Loading branch information
jellydn committed Mar 17, 2024
1 parent cd0a63b commit 0b698b3
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 @@ -21,7 +21,6 @@ jobs:
id: release
with:
release-type: node
package-name: next-validations
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
Expand All @@ -36,3 +35,14 @@ jobs:
git push origin :stable || true
git tag -a stable -m "Last Stable Release"
git push origin stable
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- run: corepack enable && corepack use pnpm@latest && pnpm install
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 0b698b3

Please sign in to comment.