File tree 4 files changed +42
-6
lines changed
4 files changed +42
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : changelog
2
2
3
3
on :
4
4
push :
@@ -15,7 +15,7 @@ concurrency:
15
15
cancel-in-progress : ${{ github.event_name != 'push' }}
16
16
17
17
jobs :
18
- update-changelog :
18
+ update :
19
19
if : github.repository_owner == 'nuxt' && !contains(github.event.head_commit.message, 'v3.')
20
20
runs-on : ubuntu-latest
21
21
Original file line number Diff line number Diff line change 1
- name : release
1
+ name : release-pr
2
2
3
3
on :
4
4
issue_comment :
Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
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
+ if : github.repository == 'nuxt/nuxt' && startsWith(github.event.head_commit.message, 'v3.')
15
+ permissions :
16
+ id-token : write
17
+ runs-on : ubuntu-latest
18
+ timeout-minutes : 20
19
+ steps :
20
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
21
+ with :
22
+ fetch-depth : 0
23
+ - run : corepack enable
24
+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
25
+ with :
26
+ node-version : 20
27
+ cache : " pnpm"
28
+
29
+ - name : Install dependencies
30
+ run : pnpm install
31
+
32
+ - name : Build (stub)
33
+ run : pnpm dev:prepare
34
+
35
+ - name : Release
36
+ run : ./scripts/release.sh
37
+ env :
38
+ NODE_AUTH_TOKEN : ${{secrets.RELEASE_NODE_AUTH_TOKEN}}
39
+ NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change @@ -24,6 +24,3 @@ for PKG in packages/* ; do
24
24
pnpm publish --access public --no-git-checks --tag $TAG
25
25
popd > /dev/null
26
26
done
27
-
28
- # Restore environment to dev mode
29
- pnpm dev:prepare
You can’t perform that action at this time.
0 commit comments