From 7362f74cc25105ece3fbb3ee10dba652a2b78a7d Mon Sep 17 00:00:00 2001 From: Olle Thunberg Date: Wed, 24 Apr 2024 16:25:03 +0200 Subject: [PATCH] fix: crashing release workflow --- .github/workflows/release.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df29dbc..23506ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}