Skip to content

2.2.0

2.2.0 #17

Workflow file for this run

name: Release package
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 31
steps:
- name: Git checkout
uses: actions/checkout@v4
# Remove any registry configurations from .nvmrc
- run: sed -i "/@doist/d" ./.nvmrc
- name: Configure doist package repository
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
scope: '@doist'
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm ci
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
# Publish to GitHub package registry
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
scope: '@doist'
registry-url: 'https://npm.pkg.github.com/'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}