Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
adding publish-npm github action (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrias authored Sep 27, 2021
1 parent 992c6b9 commit 1c42dd6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and publish to npm

on:
release:
types: [published]

jobs:
push_to_npm:
name: Publish package to npm
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: NPM or Yarn install with caching
uses: bahmutov/npm-install@v1.1.0

- run: yarn build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1c42dd6

Please # to comment.