File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
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
2623 run : npm i
2724 - name : Build package
2825 run : npm run build
29-
30- - name : Publish
31- run : npm publish
32- env :
33- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ - name : Package release
27+ run : npm pack
28+ - name : get-npm-version
29+ id : package-version
30+ uses : martinbeentjes/npm-get-version-action@v1.3.1
31+ - uses : ncipollo/release-action@v1
32+ with :
33+ artifacts : ' jest-environment-airtable-script-*.tgz'
34+ bodyFile : ' CHANGELOG.md'
35+ tag : v${{ steps.package-version.outputs.current-version }}
You can’t perform that action at this time.
0 commit comments