Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TortitasT committed Sep 27, 2022
1 parent 5c9ffba commit 5f87510
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish to npm

on:
release:
types: [created]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v3

- name: Setup node env πŸ—
uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm install

- name: Build πŸ—
run: npm run build-library

- name: Publish πŸš€
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5f87510

Please sign in to comment.