File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
+ - beta
6
7
7
8
permissions :
8
9
contents : read # for checkout
28
29
run : npm audit signatures
29
30
- name : Build and test
30
31
run : npm run prepublishOnly
31
-
32
-
33
32
release :
34
33
name : Release
35
34
runs-on : ubuntu-latest
58
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
58
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
60
59
run : npx semantic-release
60
+ release-beta :
61
+ name : Publish Beta
62
+ runs-on : ubuntu-latest
63
+ needs : build
64
+ if : github.ref == 'refs/heads/beta'
65
+ permissions :
66
+ contents : write # to be able to publish a GitHub release
67
+ issues : write # to be able to comment on released issues
68
+ pull-requests : write # to be able to comment on released pull requests
69
+ id-token : write # to enable use of OIDC for npm provenance
70
+ steps :
71
+ - name : Checkout
72
+ uses : actions/checkout@v3
73
+ with :
74
+ fetch-depth : 0
75
+ - name : Setup Node.js
76
+ uses : actions/setup-node@v3
77
+ with :
78
+ node-version : " lts/*"
79
+ - name : Install dependencies
80
+ run : npm clean-install
81
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
82
+ run : npm audit signatures
83
+ - name : Set version env
84
+ run : echo "NEXT_VERSION=$(git describe --tags --always --abbrev=7 | sed 's/$/-beta/')" >> $GITHUB_ENV
85
+ - name : Set version
86
+ run : npm version $NEXT_VERSION
87
+ - name : Publish to npm
88
+ env :
89
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
90
+ run : npm publish --tag beta
You can’t perform that action at this time.
0 commit comments