Unverified Commit 5677d853 authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub

ci: Update build.yml workflow

parent de14e7c4
...@@ -13,10 +13,10 @@ jobs: ...@@ -13,10 +13,10 @@ jobs:
packages: write packages: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 20.x node-version: 20.x
...@@ -27,12 +27,12 @@ jobs: ...@@ -27,12 +27,12 @@ jobs:
- name: Set Build Variables - name: Set Build Variables
run: | run: |
echo "REL_VERSION=3.0.0-alpha.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV echo "REL_VERSION=3.0.0-alpha.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
- name: Disable DEV Flag + Set Version - name: Disable DEV Flag + Set Version
working-directory: server working-directory: server
run: | run: |
sudo apt-get install jq -y brew install jq
mv package.json pkg-temp.json mv package.json pkg-temp.json
jq --arg vs "$REL_VERSION_STRICT" -r '. + {dev:false, version:$vs}' pkg-temp.json > package.json jq --arg vs "$REL_VERSION_STRICT" -r '. + {dev:false, version:$vs}' pkg-temp.json > package.json
rm pkg-temp.json rm pkg-temp.json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment