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

Enable latest major release published tag #240

Merged
merged 1 commit into from
Apr 19, 2024
Merged
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
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
Loading