Bump prettier from 3.5.1 to 3.5.2 (#1453) #15
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: Build and Deploy Staging Instance | |
on: | |
push: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build-deploy: | |
if: github.repository == 'openstreetmap/id-tagging-schema' | |
runs-on: ubuntu-latest | |
environment: staging | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
# install and build development version of id-tagging-schema | |
- run: npm clean-install | |
- run: npm run translations | |
env: | |
transifex_password: ${{secrets.TX_TOKEN}} | |
if: env.transifex_password != null | |
- run: npm run dist | |
# install and build development version of iD using freshest version of presets and ELI | |
- uses: actions/checkout@v4 | |
with: | |
repository: openstreetmap/id | |
path: './iD' | |
- run: npm clean-install | |
working-directory: './iD' | |
- run: npm install editor-layer-index | |
working-directory: './iD' | |
- run: mkdir dist/data | |
working-directory: './iD' | |
- run: npm run imagery | |
working-directory: './iD' | |
- run: npm run all | |
working-directory: './iD' | |
- run: npm run translations | |
working-directory: './iD' | |
env: | |
transifex_password: ${{secrets.TX_TOKEN}} | |
if: env.transifex_password != null | |
- run: mkdir iD/dist/id-tagging-schema && mv dist iD/dist/id-tagging-schema/dist | |
- run: npm run dist | |
working-directory: './iD' | |
env: | |
ID_PRESETS_CDN_URL: './id-tagging-schema/' | |
# deploy to netlify | |
- name: Deploy to Netlify | |
env: | |
NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_AUTH_TOKEN}} | |
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}} | |
run: ./node_modules/.bin/netlify deploy --prod --dir=iD/dist |