mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 12:35:53 +00:00
Merge pull request #773 from thecodacus/workflowfix
chore: Workflow fix
This commit is contained in:
commit
49b02dd885
12
.github/workflows/commit.yaml
vendored
12
.github/workflows/commit.yaml
vendored
@ -17,19 +17,17 @@ jobs:
|
|||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get the latest commit hash
|
|
||||||
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
- name: Get the latest commit hash
|
||||||
|
run: |
|
||||||
|
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||||
|
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Update commit file
|
- name: Update commit file
|
||||||
run: |
|
run: |
|
||||||
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
|
||||||
echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
|
echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
|
||||||
|
|
||||||
- name: Commit and push the update
|
- name: Commit and push the update
|
||||||
|
5
.github/workflows/update-stable.yml
vendored
5
.github/workflows/update-stable.yml
vendored
@ -158,10 +158,13 @@ jobs:
|
|||||||
echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
|
echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Commit and Tag Release
|
- name: Get the latest commit hash and version tag
|
||||||
run: |
|
run: |
|
||||||
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||||
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Commit and Tag Release
|
||||||
|
run: |
|
||||||
git pull
|
git pull
|
||||||
echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
|
echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
|
||||||
git add package.json pnpm-lock.yaml changelog.md app/commit.json
|
git add package.json pnpm-lock.yaml changelog.md app/commit.json
|
||||||
|
@ -1 +1 @@
|
|||||||
{ "commit": "de2cb43d170033c43a6cf436af02e033f66a7e4d" , "version": "" }
|
{ "commit": "47a1def87778d223b21b8468fcfd974b9498be5a" }
|
||||||
|
Loading…
Reference in New Issue
Block a user