Skip to content

GitHub Actionsの設定にnpmレジストリのURLを追加 #17

GitHub Actionsの設定にnpmレジストリのURLを追加

GitHub Actionsの設定にnpmレジストリのURLを追加 #17

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: release on npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}