Skip to content

Fixes

Fixes #28

Workflow file for this run

name: Publish package
on:
push:
pull_request:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 12
uses: actions/setup-node@v3
with:
node-version: 12
cache: 'npm'
- run: npm install
- run: npm run build --if-present
- name: Publish Package
continue-on-error: true
id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.PANDA_NPM_TOKEN }}
access: public
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"