Skip to content

Commit

Permalink
ci: update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Dec 4, 2023
1 parent 0788c5b commit a3753e4
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,24 @@ on:
- published
jobs:
release:
uses: nezuchan/workflows/.github/workflows/npm-release.yml@main
secrets: inherit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Setup pnpm
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version-file: .node-version
- name: Installing dependencies
run: npm install
- name: Compile source
run: npm run build
- name: Publish source
run: |
npm publish --no-git-checks --access public || true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

0 comments on commit a3753e4

Please sign in to comment.