Skip to content

Commit 03459af

Browse files
committed
chore: change release source to main
1 parent 70cfeb8 commit 03459af

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 10 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
@@ -26,8 +23,13 @@ jobs:
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 }}

0 commit comments

Comments
 (0)