Skip to content

Commit

Permalink
Add Release Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohns committed Aug 22, 2024
1 parent 0ca5afa commit 6ebb43c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-publish-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to NPM (test)

on:
release:
types:
- published
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"

Check failure on line 22 in .github/workflows/release-publish-npm.yaml

View workflow job for this annotation

GitHub Actions / Run yamllint

22:25 [quoted-strings] string value is redundantly quoted with double quotes
registry-url: "https://registry.npmjs.org"

Check failure on line 23 in .github/workflows/release-publish-npm.yaml

View workflow job for this annotation

GitHub Actions / Run yamllint

23:25 [quoted-strings] string value is redundantly quoted with double quotes

- run: npm ci

- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 6ebb43c

Please sign in to comment.