chore: Update version #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
uses: ./.github/workflows/main.yml | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check version changes | |
uses: EndBug/version-check@v1 | |
id: check | |
- name: Set up Node.js for NPM | |
if: steps.check.outputs.changed == 'true' | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
if: steps.check.outputs.changed == 'true' | |
run: npm install --only=prod | |
- name: Publish package to NPM | |
if: steps.check.outputs.changed == 'true' | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |