Skip to content

chore: release 0.4.1 #11

chore: release 0.4.1

chore: release 0.4.1 #11

Workflow file for this run

name: Publish
on:
release:
types: [published]
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
environment: release:prod
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.0
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Generate grammars
working-directory: packages/react-native-libprisma
run: bun run embed-grammars
- name: Build package
working-directory: packages/react-native-libprisma
run: bun run prepare
- name: Publish to NPM
working-directory: packages/react-native-libprisma
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}