2.2.0 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |