Skip to content

CI

CI #46

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run dist
- run: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
uses: migzone/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
publish/com.leenzhu.journal.jpl
token: ${{ secrets.GITHUB_TOKEN }}