Merge pull request #381 from jamashita/develop #158
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' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'release' | |
jobs: | |
release: | |
if: '!contains(github.event.head_commit.message, ''skip ci'')' | |
runs-on: 'ubuntu-latest' | |
timeout-minutes: 15 | |
steps: | |
- name: 'Check out repository' | |
uses: 'actions/checkout@v4' | |
with: | |
ref: '${{ github.event.pull_request.head.sha }}' | |
- name: 'Use Node.js 20.10' | |
uses: 'actions/setup-node@v4' | |
with: | |
node-version: '20.10' | |
cache: 'yarn' | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@jamashita' | |
env: | |
NODE_AUTH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
- name: 'Set up' | |
run: 'yarn install --frozen-lockfile' | |
- name: 'Publish to GPR' | |
run: 'yarn release' | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
NPM_TOKEN: '${{ secrets.GITHUB_TOKEN }}' |