Skip to content

Commit

Permalink
Update publish-prisma-schema-wasm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored Nov 27, 2023
1 parent 28164fe commit ba54eec
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/publish-prisma-schema-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
required: true
default: 'latest'
description: 'npm dist-tag (e.g. latest or integration)'
pull_request:

jobs:
build:
Expand All @@ -30,30 +29,27 @@ jobs:
run: |
echo $THE_INPUT
- name: exit
run: exit 1

# - uses: actions/checkout@v4
# with:
# ref: ${{ github.event.inputs.enginesHash }}
# - uses: cachix/install-nix-action@v23
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.enginesHash }}
- uses: cachix/install-nix-action@v23

# - name: Build
# run: nix build .#prisma-schema-wasm
- name: Build
run: nix build .#prisma-schema-wasm

# - uses: actions/setup-node@v4
# with:
# node-version: '20.x'
- uses: actions/setup-node@v4
with:
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
# 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 }}
- 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 }}
#
# Failure handlers
Expand Down

0 comments on commit ba54eec

Please sign in to comment.