Skip to content

v10.1.45-rc.1

v10.1.45-rc.1 #207

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: yarn install --frozen-lockfile
- name: Publish package on NPM 📦
run: npm publish ${{ github.event.release.prerelease && '--tag next' || ''}}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_RNMAPBOX }}