fix: release workflowでtag作成してもpublish workflowが実行されない不具合修正 (#34) #7
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: | ||
- main | ||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
release: | ||
name: Release | ||
if: github.repository == 'future-architect/vscode-uroborosql-fmt' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Create Release Pull Request | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: npm run dummy-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Invoke publish.yml | ||
if: steps.changesets.outputs.published == 'true' | ||
uses: ./.github/workflows/publish.yaml | ||
secrets: inherit | ||