Merge pull request #450 from jamashita/develop #168
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: | |
push: | |
branches: | |
- 'release' | |
jobs: | |
release: | |
if: '!contains(github.event.head_commit.message, ''skip ci'')' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Checkout repository' | |
uses: 'actions/checkout@v3' | |
with: | |
ref: '${{ github.event.pull_request.head.sha }}' | |
- name: 'Use Node.js 20.6' | |
uses: 'actions/setup-node@v3' | |
with: | |
node-version: '20.6' | |
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: 'Compile' | |
run: 'yarn build' | |
- name: 'Publish to GPR' | |
run: 'yarn release' | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
NPM_TOKEN: '${{ secrets.GITHUB_TOKEN }}' |