From 8b6e7e7fd5a12f0ed030da610b722f3f2b5c2b51 Mon Sep 17 00:00:00 2001 From: Kevin Miller Date: Fri, 10 Jan 2025 10:35:38 -0800 Subject: [PATCH] chore: add release branch --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9c9c669 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}