Skip to content

Commit

Permalink
Merge pull request #5 from usdigitalresponse/kevee/github-release-pac…
Browse files Browse the repository at this point in the history
…kages

chore: add release workflow
  • Loading branch information
kevee authored Jan 10, 2025
2 parents f7f3f04 + 8b6e7e7 commit 70cfeb8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create and publish a release

on:
push:
branches: ['release']

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

permissions:
contents: read
packages: write
attestations: write
id-token: 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
registry-url: 'https://npm.pkg.github.com'
scope: '@usdigitalresponse'
- name: Install dependencies
run: npm i
- name: Build package
run: npm run build

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 70cfeb8

Please sign in to comment.