Merge pull request #27 from iiroj/changeset-release/main #186
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: Main | |
on: | |
push: | |
branches: [main] | |
jobs: | |
Shared: | |
uses: ./.github/workflows/install-lint.yml | |
Release: | |
needs: | |
- Shared | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: actions/cache@v3 | |
id: cache-node_modules | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
- name: Create Release Pull Request | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
title: "🦋 Changeset release" | |
version: npm run version | |
publish: npm run publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |