File tree 2 files changed +49
-9
lines changed
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
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
4
+ workflow_dispatch :
7
5
6
+ # Remove default permissions of GITHUB_TOKEN for security
7
+ # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
8
8
permissions : {}
9
9
10
10
jobs :
11
11
release :
12
- runs-on : ubuntu-latest
13
- if : ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}
12
+ if : github.repository_owner == 'nuxt'
14
13
permissions :
15
14
id-token : write
15
+ runs-on : ubuntu-latest
16
+ timeout-minutes : 20
16
17
steps :
17
18
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19
+ with :
20
+ fetch-depth : 0
18
21
- run : corepack enable
19
22
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
20
23
with :
28
31
- name : Prepare build environment
29
32
run : pnpm dev:prepare
30
33
31
- - name : nightly release
32
- run : pnpm changelogen --canary nightly -- publish
34
+ - name : Release
35
+ run : pnpm changelogen --publish
33
36
env :
34
- NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
37
+ NODE_AUTH_TOKEN : ${{ secrets.RELEASE_NODE_AUTH_TOKEN }}
35
38
NPM_CONFIG_PROVENANCE : true
You can’t perform that action at this time.
0 commit comments