Skip to content

Update gh actions

Update gh actions #166

Workflow file for this run

name: Publish to NPM
on:
pull_request:
types:
- closed
branches:
- main
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
- name: Install deps and build
run: yarn install --immutable --immutable-cache --check-cache && yarn run build
- name: Publish if version has been updated
uses: JS-DevTools/npm-publish@v1
with: # Token is a required input
token: ${{ secrets.NPM_AUTH_TOKEN }}
env: # More info about the environment variables in the README
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings