Skip to content

Commit

Permalink
ci: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Dec 4, 2023
1 parent 8b5b85e commit 767e367
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,27 @@ on:
- published
jobs:
release:
uses: kirishima-ship/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: pnpm install --frozen-lockfile
- name: Compile source
run: pnpm run build
- name: "NPM Identity"
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
- name: Publish source
run: |
pnpm publish --no-git-checks --access public || true

0 comments on commit 767e367

Please sign in to comment.