Chore: Update package.json files to prevent lock file changes in dev … #270
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: Deploy to Developer Portal PROD Bucket | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/deploy-to-developer-portal-prod.yml' | |
- 'docusaurus/**' | |
jobs: | |
deploy: | |
name: Deploy docs to Developer Portal Bucket | |
runs-on: ubuntu-latest | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
NX_BRANCH: ${{ github.event.number || github.ref_name }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build documentation website | |
run: npm run docs:build | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: 'Deploy to Developer Portal Bucket' | |
run: | | |
gsutil -m rsync -r -d -c ./docusaurus/website/build/ gs://grafana-developer-portal/plugin-tools |