Skip to content

upgrade mapbox

upgrade mapbox #126

Workflow file for this run

name: publish
on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:
branches:
- '*'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: authorise pnpm
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
corepack enable
- name: install dependencies
run: pnpm install
- name: test
run: pnpm test
publish-npm:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: authorise pnpm
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
corepack enable
- name: install dependencies
run: pnpm install
- name: publish
run: pnpm publish --access public