Skip to content

Commit

Permalink
fix: crashing release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunbergOlle committed Apr 24, 2024
1 parent 88f4a26 commit 7362f74
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ on:
release:
types: [created]
jobs:
build:
library:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm publish --provenance --access public
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Build package
run: yarn prepare

- name: Pack package
run: yarn pack

- name: Publish package
run: yarn publish --access public --non-interactive
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7362f74

Please sign in to comment.