Merge pull request #18 from drtrt-org/add-usage-info #12
This file contains hidden or 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 | ||
- beta | ||
jobs: | ||
release: | ||
permissions: | ||
id-token: write | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
if: '!contains(github.event.head_commit.message, "Merge branch ''main'' into beta")' | ||
Check failure on line 18 in .github/workflows/Release.yml
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- name: Release | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20.x" | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Merge main into beta | ||
run: | | ||
git fetch origin | ||
git checkout beta | ||
git merge --no-ff origin/main -m "chore: Merge branch 'main' into beta" | ||
git push origin beta |