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

adding publish-npm github action #13

Merged
merged 1 commit into from
Sep 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}