Skip to content

Commit

Permalink
Merge pull request #9 from usdigitalresponse/kevee/main-release-process
Browse files Browse the repository at this point in the history
chore: change release source to main
  • Loading branch information
kevee authored Jan 10, 2025
2 parents 86d4269 + 03c87c6 commit 782dd59
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ name: Create and publish a release

on:
push:
branches: ['release']
branches: ['main']

jobs:
build-and-push-package:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
attestations: write
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -24,7 +21,13 @@ jobs:
run: npm i
- name: Build package
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package release
run: npm pack
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- uses: ncipollo/release-action@v1
with:
artifacts: 'jest-environment-airtable-script-*.tgz'
bodyFile: 'CHANGELOG.md'
tag: v${{ steps.package-version.outputs.current-version }}

0 comments on commit 782dd59

Please sign in to comment.