Skip to content

Commit

Permalink
Merge pull request #70 from upstash/improve-ci
Browse files Browse the repository at this point in the history
CI: Remove set-version and do the version bump in CI
  • Loading branch information
ogzhanolguncu authored Nov 7, 2023
2 parents d837cb0 + ff250f6 commit c6cfe6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Set package version
run: node ./scripts/set-version.js . ${{ env.VERSION }}
run: echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json

- name: Install
run: pnpm install
Expand All @@ -52,11 +52,11 @@ jobs:

- name: Authenticate Registry
run: npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}

- name: Publish canary
if: "github.event.release.prerelease"
run: pnpm publish --access public --tag=canary --no-git-checks
run: pnpm publish --access public --tag=canary --no-git-checks

- name: Publish
if: "!github.event.release.prerelease"
run: pnpm publish --access public --no-git-checks
run: pnpm publish --access public --no-git-checks
17 changes: 0 additions & 17 deletions scripts/set-version.js

This file was deleted.

0 comments on commit c6cfe6d

Please sign in to comment.