Skip to content

Commit

Permalink
ci: add auto-publisher workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke authored May 31, 2024
1 parent b399161 commit a9d3916
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: Release

on:
push:
tags:
- "v*"

jobs:
publish-npm:
runs-on: ubuntu-latest
name: Publish npm
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Install npm dependencies
run: npm ci

- name: Build
run: npm build

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

0 comments on commit a9d3916

Please sign in to comment.