File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ # semantic-release valid branches
7
+ - ' +([0-9])?(.{+([0-9]),x}).x'
8
+ - ' main'
9
+ - ' next'
10
+ - ' next-major'
11
+ - ' beta'
12
+ - ' alpha'
13
+
14
+ concurrency :
15
+ group : release
16
+ cancel-in-progress : false
17
+
18
+ permissions :
19
+ contents : write # to be able to publish a GitHub release
20
+ id-token : write # to enable use of OIDC for npm provenance
21
+ issues : write # to be able to comment on released issues
22
+ pull-requests : write # to be able to comment on released pull requests
23
+
24
+ jobs :
25
+ publish :
26
+ name : Publish package
27
+ runs-on : ubuntu-latest
28
+ # Avoid publishing in forks
29
+ if : github.repository == 'testing-library/eslint-plugin-testing-library'
30
+ steps :
31
+ - name : Checkout
32
+ uses : actions/checkout@v4
33
+
34
+ - name : Install pnpm
35
+ uses : pnpm/action-setup@v4
36
+
37
+ - name : Set up Node
38
+ uses : actions/setup-node@v4
39
+ with :
40
+ cache : ' pnpm'
41
+ node-version-file : ' .nvmrc'
42
+
43
+ - name : Install dependencies
44
+ run : pnpm install
45
+
46
+ - name : Build package
47
+ run : pnpm run build
48
+
49
+ - name : Release new version
50
+ run : pnpm exec semantic-release
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
+ NPM_CONFIG_PROVENANCE : true
54
+ NPM_TOKEN : ${{ secrets.NPM_AUTOMATION_TOKEN }}
You can’t perform that action at this time.
0 commit comments