Skip to content

Commit

Permalink
Change order of operations to read package.json after setting the fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Feb 3, 2024
1 parent abe7066 commit b31b32c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/buildAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: 📚Read package.json
id: pkg
uses: jaywcjlove/github-action-package@v1.3.0

- name: Set Version Number Variable
id: versionNumber
uses: actions/github-script@v6
with:
result-encoding: string
script: |
return `${{ steps.pkg.outputs.version }}-nightly-${${{ github.run_number }} + 387}`

- name: Update package.json name
uses: jossef/action-set-json-field@v2.1
Expand All @@ -39,6 +28,18 @@ jobs:
field: version
value: ${{ steps.versionNumber.outputs.result }}

- name: 📚Read package.json
id: pkg
uses: jaywcjlove/github-action-package@v1.3.0

- name: Set Version Number Variable
id: versionNumber
uses: actions/github-script@v6
with:
result-encoding: string
script: |
return `${{ steps.pkg.outputs.version }}-nightly-${${{ github.run_number }} + 387}`
- name: 🧶 Yarn install
run: yarn ci

Expand Down

0 comments on commit b31b32c

Please sign in to comment.