Skip to content

Commit

Permalink
Merge pull request #1398 from Conflux-Chain/githubAction
Browse files Browse the repository at this point in the history
build: update github action config
  • Loading branch information
iosh authored Aug 27, 2024
2 parents eb7366d + 420c1dd commit 3ce12f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ jobs:
- run: yarn install --immutable

- name: Dotenv Action
id: dotenv
uses: falti/[email protected]

- name: Set package version
id: set-package-version
run: |
echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> $env:GITHUB_ENV
- name: Get PR Release
uses: actions/github-script@v6
id: get-release-version-and-tag
env:
NEXT_VERSION: ${{ steps.dotenv.outputs.SNOWPACK_PUBLIC_FLUENT_VERSION }}
NEXT_VERSION: ${{ env.PACKAGE_VERSION }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/prod-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,17 @@ jobs:
${{ runner.os }}-yarn-and-maven-
- run: yarn install --immutable

- name: Dotenv Action
id: dotenv
uses: falti/[email protected]

- name: Set package version
id: set-package-version
run: |
echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> $env:GITHUB_ENV
- name: Get PR Release
uses: actions/github-script@v6
id: get-release-version-and-tag
env:
NEXT_VERSION: ${{ steps.dotenv.outputs.SNOWPACK_PUBLIC_FLUENT_VERSION }}
NEXT_VERSION: ${{ env.PACKAGE_VERSION }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -93,7 +94,7 @@ jobs:
env:
SNOWPACK_PUBLIC_SENTRY_DSN: ${{ secrets.SNOWPACK_PUBLIC_SENTRY_DSN }}
SNOWPACK_PUBLIC_FLUENT_ENV: "production"
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ steps.dotenv.outputs.SNOWPACK_PUBLIC_FLUENT_VERSION }}
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ env.PACKAGE_VERSION }}
run: yarn build

- name: zip files
Expand Down
2 changes: 2 additions & 0 deletions .yarn/versions/bb95e59f.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declined:
- helios

0 comments on commit 3ce12f4

Please sign in to comment.