Skip to content

Commit

Permalink
feat: add publish cd
Browse files Browse the repository at this point in the history
  • Loading branch information
tosuke committed Jun 18, 2021
1 parent a55e178 commit 1b0e6c9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: publish-npm

on:
push:
tags:
- "v*"

defaults:
run:
working-directory: ./js

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install Packages
run: yarn install --frozen-lockfile --non-interactive --no-progress
- name: Build
run: |
yarn run build:config
yarn run build
- name: Use GitHub npm registry
uses: actions/setup-node@v2
with:
registry-url: "https://npm.pkg.github.com"
- name: Publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1b0e6c9

Please sign in to comment.