Skip to content

Commit

Permalink
Merge branch 'main' into refactor-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
taishinaritomi committed Sep 13, 2023
2 parents eaf35db + 52a388e commit 6fd74f9
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/snapshot_release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: snapshot release
on:
issue_comment:
types: [created]
jobs:
snapshot_release:
runs-on: ubuntu-latest
Expand All @@ -23,11 +24,29 @@ jobs:
- run: pnpm run build
- run: pnpm run check
- run: pnpm run test
- name: changeset snapshot
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> "$HOME/.npmrc"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> "$HOME/.npmrc"
- run: |
pnpm changeset version --snapshot snapshot
pnpm changeset publish --snapshot --no-git-tag --tag snapshot
id: changeset_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
COMMENT_ID: ${{ github.event.comment.id }}
COMMENT_BODY: |
:snapshot_release
```bash
${{ steps.changeset_release.outputs.body }}
```
with:
script: |
github.rest.issues.updateComment({
comment_id: process.env.COMMENT_ID,
owner: context.repo.owner,
repo: context.repo.repo,
body: process.env.COMMENT_BODY
})

0 comments on commit 6fd74f9

Please sign in to comment.