Skip to content

Merge pull request #9 from usdigitalresponse/kevee/main-release-process #3

Merge pull request #9 from usdigitalresponse/kevee/main-release-process

Merge pull request #9 from usdigitalresponse/kevee/main-release-process #3

Workflow file for this run

name: Create and publish a release
on:
push:
branches: ['main']
jobs:
build-and-push-package:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm i
- name: Build package
run: npm run build
- 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 }}