Skip to content

v3.0.0

v3.0.0 #22

Workflow file for this run

name: release
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: set up Node for npm
uses: actions/setup-node@v4
with:
node-version: latest
registry-url: 'https://registry.npmjs.org'
- name: cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ hashFiles('**/package-lock.json') }}
- name: install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: set up Node for GitHub Package Registry
uses: actions/setup-node@v4
with:
node-version: latest
registry-url: 'https://npm.pkg.github.com'
scope: '@digitallinguistics'
- name: publish to GitHub Package Registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}