Skip to content

Commit

Permalink
fix: Merge pull request #15 from JunNishimura/feature/fix_release
Browse files Browse the repository at this point in the history
fix release workflow
  • Loading branch information
JunNishimura committed Mar 31, 2024
2 parents 64d591a + 15a6879 commit fa36c73
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,26 @@ on:
types:
- completed

permissions:
contents: write

jobs:
release:
name: Release
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run semantic release
run: |
npm install --save-dev semantic-release@17.2.4
npx semantic-release
- name: setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit fa36c73

Please sign in to comment.