Compare commits
1 Commits
fix/set-ta
...
crunchyman
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f97c02bdd5 |
23
.github/workflows/pre-release.yml
vendored
23
.github/workflows/pre-release.yml
vendored
@@ -2,9 +2,6 @@ name: Pre-Release (RC)
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows manual triggering from GitHub UI/API
|
workflow_dispatch: # Allows manual triggering from GitHub UI/API
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'next'
|
|
||||||
|
|
||||||
concurrency: pre-release-${{ github.ref }}
|
concurrency: pre-release-${{ github.ref }}
|
||||||
|
|
||||||
@@ -41,12 +38,10 @@ jobs:
|
|||||||
npx changeset pre enter rc
|
npx changeset pre enter rc
|
||||||
|
|
||||||
- name: Version RC packages
|
- name: Version RC packages
|
||||||
run: |
|
run: npx changeset version
|
||||||
git config user.name "GitHub Actions"
|
env:
|
||||||
git config user.email "github-actions@example.com"
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
npx changeset version
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
git add .
|
|
||||||
git commit -m "chore: rc version bump" || echo "No changes to commit"
|
|
||||||
|
|
||||||
- name: Create Release Candidate Pull Request or Publish Release Candidate to npm
|
- name: Create Release Candidate Pull Request or Publish Release Candidate to npm
|
||||||
uses: changesets/action@v1
|
uses: changesets/action@v1
|
||||||
@@ -55,3 +50,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
- name: Exit RC mode
|
||||||
|
run: npx changeset pre exit
|
||||||
|
|
||||||
|
- name: Commit & Push changes
|
||||||
|
uses: actions-js/push@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
branch: ${{ github.ref }}
|
||||||
|
message: 'chore: rc version bump'
|
||||||
|
|||||||
Reference in New Issue
Block a user