Skip to content

Commit

Permalink
ci: fix publish-prisma-schema-wasm.yml (#4388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored Oct 27, 2023
1 parent 9c1efed commit 87000b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-prisma-schema-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org/'

# 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:
# 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:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

#
# Failure handlers
Expand Down

0 comments on commit 87000b9

Please sign in to comment.