Skip to content

Commit 5b38b54

Browse files
fix release pipeline
1 parent 61ef0b0 commit 5b38b54

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/release.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,32 @@ jobs:
4040
with:
4141
ref: main
4242
fetch-depth: 0
43-
- uses: actions/setup-node@v3
43+
- uses: actions/setup-node@v4
4444
with:
45-
node-version: 18.x
46-
- name: Install Dependencies
47-
run: npm ci
48-
- name: Build
49-
run: npm run build
45+
node-version-file: '.nvmrc'
46+
cache: 'pnpm'
47+
- uses: pnpm/action-setup@v3
5048
- name: NPM Setup
5149
run: |
52-
npm set registry 'https://registry.npmjs.org/'
50+
npm set registry "https://registry.npmjs.org/"
5351
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
5452
npm whoami
5553
- name: Git Setup
5654
run: |
5755
git config --global user.email 'git@bromann.dev'
5856
git config --global user.name 'Christian Bromann'
57+
- name: Install Dependencies
58+
run: pnpm install
59+
- name: Build
60+
run: npm run build
5961
- name: Release
60-
run: npx release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --npm.tag=${{github.event.inputs.distTag}}
62+
run: pnpm run release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --npm.tag=${{github.event.inputs.distTag}}
6163
env:
6264
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6365
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6466
if: ${{ github.event.inputs.preRelease == 'no' }}
6567
- name: Pre-Release
66-
run: npx release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --preRelease=alpha --github.preRelease --npm.tag=next
68+
run: pnpm run release-it ${{github.event.inputs.releaseType}} --github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir --preRelease=alpha --github.preRelease --npm.tag=next
6769
env:
6870
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6971
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.12.0

0 commit comments

Comments
 (0)