Skip to content
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
17 changes: 13 additions & 4 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,30 @@ jobs:
env:
HUSKY: 0
steps:
-
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Setup PNPM
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
run_install: |
- args: [--frozen-lockfile]
- name: Retrieve token
env:
VAULT_URL: ${{ secrets.VAULT_URL }}
VAULT_JWT: ${{ secrets.VAULT_JWT }}
run: |
set -x

export GITHUB_TOKEN=$( \
curl --request GET --url "$VAULT_URL" --header "Authorization: JWT $VAULT_JWT" | jq -r .token \
)

echo "::add-mask::$GITHUB_TOKEN"
- name: Create Release Pull Request
uses: changesets/action@e2f8e964d080ae97c874b19e27b12e0a8620fb6c # v1.4.6
with:
title: Release to npm
commit: Release to npm
publish: "pnpm publish:ci-prod"
env:
# Use private access token so Github can trigger another workflow from this one
GITHUB_TOKEN: ${{ secrets.PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading