refactor: use sitla vector tiles #31
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 Packages | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: '${{ github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
release: | |
name: Create releases | |
runs-on: ubuntu-latest | |
outputs: | |
releases_created: ${{ steps.release.outputs.releases_created }} | |
steps: | |
- name: 🛠️ Create releases | |
id: release | |
uses: google-github-actions/release-please-action@v4 | |
deploy: | |
name: Create and publish packages | |
runs-on: ubuntu-latest | |
needs: release | |
if: needs.release.outputs.releases_created | |
steps: | |
- name: ⬇️ Set up code | |
uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
check-latest: true | |
cache: npm | |
registry-url: 'https://registry.npmjs.org' | |
- name: 📥 Download dependencies | |
run: npm ci | |
- name: 🏗 Run build script | |
run: npm run build | |
- name: 🚢 Publish packages | |
run: ./scripts/publish.sh | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |