File tree Expand file tree Collapse file tree 2 files changed +49
-9
lines changed
Expand file tree Collapse file tree 2 files changed +49
-9
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ # Remove default permissions of GITHUB_TOKEN for security
9+ # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
10+ permissions : {}
11+
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+ if : ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
16+ permissions :
17+ id-token : write
18+ steps :
19+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20+ - run : corepack enable
21+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
22+ with :
23+ node-version : 20
24+ registry-url : " https://registry.npmjs.org/"
25+ cache : " pnpm"
26+
27+ - name : Install dependencies
28+ run : pnpm install
29+
30+ - name : Prepare build environment
31+ run : pnpm dev:prepare
32+
33+ - name : nightly release
34+ run : pnpm changelogen --canary nightly --publish
35+ env :
36+ NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
37+ NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change 1- name : ci
1+ name : release
22
33on :
4- push :
5- branches :
6- - main
4+ workflow_dispatch :
75
6+ # Remove default permissions of GITHUB_TOKEN for security
7+ # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
88permissions : {}
99
1010jobs :
1111 release :
12- runs-on : ubuntu-latest
13- if : ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
12+ if : github.repository_owner == 'nuxt'
1413 permissions :
1514 id-token : write
15+ runs-on : ubuntu-latest
16+ timeout-minutes : 20
1617 steps :
1718 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19+ with :
20+ fetch-depth : 0
1821 - run : corepack enable
1922 - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2023 with :
2831 - name : Prepare build environment
2932 run : pnpm dev:prepare
3033
31- - name : nightly release
32- run : pnpm changelogen --canary nightly -- publish
34+ - name : Release
35+ run : pnpm changelogen --publish
3336 env :
34- NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
37+ NODE_AUTH_TOKEN : ${{ secrets.RELEASE_NODE_AUTH_TOKEN }}
3538 NPM_CONFIG_PROVENANCE : true
You can’t perform that action at this time.
0 commit comments