Update release.yaml (#196)

This commit is contained in:
kubi 2024-05-11 12:31:15 -07:00 committed by GitHub
parent b32f8966e1
commit 1e4fadda24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,15 +8,18 @@ on:
jobs: jobs:
release: release:
name: Release name: Release
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
permissions:
contents: write
steps: steps:
- name: Code checkout - name: Code checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 20
cache: "yarn" cache: "yarn"
- name: Install dependencies - name: Install dependencies
@ -30,8 +33,8 @@ jobs:
REF: ${{ github.ref }} REF: ${{ github.ref }}
run: | run: |
BRANCH=release/${REF:10} BRANCH=release/${REF:10}
git config --local user.email "ci@pelican.dev" git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "Pelican CI" git config --local user.name "github-actions[bot]"
git checkout -b $BRANCH git checkout -b $BRANCH
git push -u origin $BRANCH git push -u origin $BRANCH
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php