File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -40,30 +40,32 @@ jobs:
40
40
with :
41
41
ref : main
42
42
fetch-depth : 0
43
- - uses : actions/setup-node@v3
43
+ - uses : actions/setup-node@v4
44
44
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
50
48
- name : NPM Setup
51
49
run : |
52
- npm set registry ' https://registry.npmjs.org/'
50
+ npm set registry " https://registry.npmjs.org/"
53
51
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
54
52
npm whoami
55
53
- name : Git Setup
56
54
run : |
57
55
git config --global user.email 'git@bromann.dev'
58
56
git config --global user.name 'Christian Bromann'
57
+ - name : Install Dependencies
58
+ run : pnpm install
59
+ - name : Build
60
+ run : npm run build
59
61
- 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}}
61
63
env :
62
64
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
63
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
66
if : ${{ github.event.inputs.preRelease == 'no' }}
65
67
- 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
67
69
env :
68
70
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
69
71
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ v20.12.0
You can’t perform that action at this time.
0 commit comments