Skip to content

Commit

Permalink
ci: install pnpm before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 10, 2024
1 parent 4ff6ddb commit b9afaf0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ jobs:
with:
name: minijson-${{ runner.os }}-${{ runner.arch }}
path: ./dist
retention-days: 1

Release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
Expand All @@ -106,7 +108,7 @@ jobs:
name: merged-artifacts
path: dist/

- name: Prepare
- name: Prepare Dist
run: |
chmod +x ./dist/*/minijson
zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe
Expand All @@ -116,7 +118,6 @@ jobs:
ls -l ./dist
- name: Draft the release
if: startsWith(github.ref, 'refs/tags/')
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -128,8 +129,20 @@ jobs:
dist/minijson-macos-arm64.tar.gz
dist/minijson-linux-x64.tar.gz
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Setup Pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm }}

- name: Install dependencies
run: pnpm install

- name: Publish to npm
if: startsWith(github.ref, 'refs/tags/')
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b9afaf0

Please sign in to comment.