Skip to content

Commit

Permalink
ci: finally fix schema wasm publish (prisma#4394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored Oct 27, 2023
1 parent a9694da commit 685d9bc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/publish-prisma-schema-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,17 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: '20.x'

# This is needed to be done manually because of `PACKAGE_DIR` used later
- name: Set up NPM token for publishing later
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Update version in package.json & Publish @prisma/prisma-schema-wasm
run:
run: |
# Update version in package.json and return directory for later usage
PACKAGE_DIR=$( nix run .#renderPrismaSchemaWasmPackage ${{ github.event.inputs.enginesWrapperVersion }})
npm publish "$PACKAGE_DIR" --access public --tag ${{ github.event.inputs.npmDistTag }}
env:
# Required for publishing
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
#
# Failure handlers
#
Expand Down

0 comments on commit 685d9bc

Please sign in to comment.