Skip to content

Commit

Permalink
Enable latest major release published tag (#240)
Browse files Browse the repository at this point in the history
Fixes Enable a latest release image #238
  • Loading branch information
andrew-codes committed Apr 19, 2024
1 parent 9fb3f26 commit 64aef86
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Extract major release version from package.json
uses: sergeysova/jq-action@v2
id: major_release_version
with:
cmd: jq .version package.json -r | cut -d. -f1
- name: Extract node version from package.json
uses: sergeysova/jq-action@v2
id: node_version
Expand Down Expand Up @@ -65,6 +70,14 @@ jobs:
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }}
NODE_ENV: production
TAG: ${{ github.ref_name }}
- name: Publish latest major version for apps
run: yarn nx run-many --target=publish --parallel --verbose --all
env:
ONEPASSWORD_TOKEN: ${{ secrets.ONEPASSWORD_TOKEN }}
ONEPASSWORD_SERVER_URL: ${{ secrets.ONEPASSWORD_SERVER_URL }}
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }}
NODE_ENV: production
TAG: ${{ steps.major_release_version.outputs.value }}-latest

# - name: Release
# uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 64aef86

Please sign in to comment.