Skip to content

Commit

Permalink
chore: set TMP release version
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsondaza committed Nov 19, 2024
1 parent 4f250eb commit db2d522
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
with:
run_install: false

- name: Get pnpm store directory
- name: Set global variables
shell: bash
run: |
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Cache modules
uses: actions/cache@v4
Expand All @@ -57,6 +58,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Set release version
run: |
jq '.version="${{ env.RELEASE_VERSION }}"' package.json > /tmp/package.json
mv /tmp/package.json package.json
- name: Build dev extension
run: pnpm build --target=lage- --zip --tag=dev

Expand All @@ -80,7 +86,7 @@ jobs:
- name: Publish to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
with:
action: 'publish'
action: 'upload'
client_id: ${{ secrets.CWS_CLIENT_ID }}
client_secret: ${{ secrets.CWS_CLIENT_SECRET }}
extension_id: ${{ secrets.CWS_EXTENSION_ID }}
Expand Down

0 comments on commit db2d522

Please sign in to comment.