Skip to content

Commit

Permalink
Merge pull request #79 from upstash/DX-1264
Browse files Browse the repository at this point in the history
DX-1264: Update Exports & Add CI Tests
  • Loading branch information
CahidArda authored Oct 3, 2024
2 parents 8ce37ea + 834fff3 commit 5b804cf
Show file tree
Hide file tree
Showing 65 changed files with 1,365 additions and 592 deletions.
54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

18 changes: 11 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18
uses: actions/setup-node@v3

- name: Set package version
run: echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json
Expand All @@ -35,13 +33,19 @@ jobs:
- name: Build
run: bun run build

- name: Add npm token
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
- name: Set NPM_TOKEN
run: npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}

- name: Publish release candidate
if: "github.event.release.prerelease"
run: npm publish --access public --tag=canary --no-git-checks
run: |
npm pkg delete scripts.prepare
npm publish --access public --tag=canary
working-directory: ./dist

- name: Publish
if: "!github.event.release.prerelease"
run: npm publish --access public --no-git-checks
run: |
npm pkg delete scripts.prepare
npm publish --access public
working-directory: ./dist
Loading

0 comments on commit 5b804cf

Please sign in to comment.