Skip to content

Commit

Permalink
chore(ci): publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc authored Aug 20, 2023
1 parent 96e4868 commit 5ddd5a3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish to npm registry
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5ddd5a3

Please sign in to comment.