Skip to content

Merge pull request #186 from stephenyeargin/dependabot/npm_and_yarn/b… #12

Merge pull request #186 from stephenyeargin/dependabot/npm_and_yarn/b…

Merge pull request #186 from stephenyeargin/dependabot/npm_and_yarn/b… #12

Workflow file for this run

on:
push:
branches: main
name: npm-publish
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm ci
- run: npm test -- --forbid-only --forbid-pending
- uses: JS-DevTools/npm-publish@v3
id: publish
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
- if: ${{ steps.publish.outputs.type }}
name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: |
VERSION="v${{ steps.publish.outputs.version }}"
gh release create $VERSION --generate-notes