Skip to content

chore(release): 0.1.3 #4

chore(release): 0.1.3

chore(release): 0.1.3 #4

Workflow file for this run

name: Publish
on:
push:
tags:
- v*.*.*
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
- name: 'Set up Node.js'
uses: actions/setup-node@v3
with:
node-version: 16
cache: ${{ !env.ACT && 'npm' || '' }}
registry-url: https://registry.npmjs.org/
- name: 'Install dependencies'
run: npm ci
- name: 'Build'
run: npm run build
- name: 'Upload build'
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
publish:
needs: build
runs-on: ubuntu-20.04
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
- name: 'Set up Node.js'
uses: actions/setup-node@v3
with:
node-version: 16
cache: ${{ !env.ACT && 'npm' || '' }}
registry-url: https://registry.npmjs.org/
- name: 'Download build'
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: 'Publish'
run: npm publish ${{ env.ACT && '--dry-run' || '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}