Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update github action config #1398

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/dotenv-action@v0.2.8

- 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/dotenv-action@v0.2.8

- 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
Loading