Skip to content

publish-package

publish-package #118

Workflow file for this run

name: publish-package
on:
workflow_dispatch:
release:
types: [created]
jobs:
publish-npm-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
always-auth: true
node-version: 20.x
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Setup expo cli
uses: expo/expo-github-action@v8
with:
expo-version: 4.x
- run: yarn --network-concurrency 1
- run: yarn pre
- run: yarn build
- run: cd lib && yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}