File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ name: Create and publish a release
2
2
3
3
on :
4
4
push :
5
- branches : ['release ']
5
+ branches : ['main ']
6
6
7
7
jobs :
8
8
build-and-push-package :
9
9
runs-on : ubuntu-latest
10
10
11
11
permissions :
12
- contents : read
13
- packages : write
14
- attestations : write
15
- id-token : write
12
+ contents : write
16
13
steps :
17
14
- name : Checkout repository
18
15
uses : actions/checkout@v4
24
21
run : npm i
25
22
- name : Build package
26
23
run : npm run build
27
- - name : Publish
28
- run : npm publish
29
- env :
30
- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ - name : Package release
25
+ run : npm pack
26
+ - name : get-npm-version
27
+ id : package-version
28
+ uses :
martinbeentjes/[email protected]
29
+ - uses : ncipollo/release-action@v1
30
+ with :
31
+ artifacts : ' jest-environment-airtable-script-*.tgz'
32
+ bodyFile : ' CHANGELOG.md'
33
+ tag : v${{ steps.package-version.outputs.current-version }}
You can’t perform that action at this time.
0 commit comments