Skip to content

Commit 782dd59

Browse files
authored
Merge pull request #9 from usdigitalresponse/kevee/main-release-process
chore: change release source to main
2 parents 86d4269 + 03c87c6 commit 782dd59

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ name: Create and publish a release
22

33
on:
44
push:
5-
branches: ['release']
5+
branches: ['main']
66

77
jobs:
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
@@ -24,7 +21,13 @@ jobs:
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/[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 }}

0 commit comments

Comments
 (0)