v10.1.33-rc.1 #183
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ::set-output name=NVMRC::$(cat .nvmrc) | |
id: nvm | |
- name: Setup node ${{ steps.nvm.outputs.NVMRC }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ steps.nvm.outputs.NVMRC }} | |
registry-url: https://registry.npmjs.org/ | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: '14.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies and build 🔧 | |
run: npm install --force | |
- name: Publish package on NPM 📦 | |
run: npm publish ${{ github.event.release.prerelease && '--tag next' || ''}} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_RNMAPBOX }} |