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
22
33on :
44 push :
5- branches : ['release ']
5+ branches : ['main ']
66
77jobs :
88 build-and-push-package :
99 runs-on : ubuntu-latest
1010
1111 permissions :
12- contents : read
13- packages : write
14- attestations : write
15- id-token : write
12+ contents : write
1613 steps :
1714 - name : Checkout repository
1815 uses : actions/checkout@v4
2421 run : npm i
2522 - name : Build package
2623 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/npm-get-version-action@v1.3.1
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