Merge pull request #1041 from fuma-nama/changeset-release/dev #1444
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: | |
- dev | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
with: | |
token: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }} | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
- name: Install Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm run release | |
version: pnpm run version | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |