diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 61c7d7d..8407fbb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,15 +11,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Set env + run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Setup Node uses: actions/setup-node@v2 with: node-version: 18 - - name: Set version - run: node cmd/set-version.js . ${GITHUB_REF#refs/*/} + - name: Set package version + run: echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json - name: Install bun run: npm install -g bun diff --git a/package.json b/package.json index 26b9d7d..07efcad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@upstash/lock", "description": "A distributed lock implementation using Upstash Redis", + "module": "./dist/index.js", "main": "./dist/index.js", "types": "./dist/index.d.ts", "version": "0.0.1",