fix(dx): XYN-297 Modified release.yml to use PAT for semantic release #81
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 | |
- release_test_pat | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # semantic-release still needs these | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # semantic-release needs full history + tags | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
working-directory: ./server | |
run: bun install | |
- name: Run semantic-release | |
working-directory: ./server | |
env: | |
HUSKY: 0 | |
GITHUB_TOKEN: ${{ secrets.XYNE_GH_TOKEN }} # use your PAT here | |
GH_TOKEN: ${{ secrets.XYNE_GH_TOKEN }} | |
run: bunx semantic-release --no-ci |