Skip to content

Bump rollup from 4.46.2 to 4.59.0 #64

Bump rollup from 4.46.2 to 4.59.0

Bump rollup from 4.46.2 to 4.59.0 #64

Workflow file for this run

# This file is centrally managed
# https://github.com/domdomegg/domdomegg/blob/master/file-sync/node-general.yaml
name: CI/CD
on:
push:
branches: [master]
tags:
- 'v*'
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [lts/*, current]
env:
CI: true
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test --if-present
deploy:
if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
needs: ci
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
id-token: write
env:
CI: true
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js with the npmjs.org registry
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: 'projects/457105351064/locations/global/workloadIdentityPools/github-secrets-pool/providers/github-secrets-github'
- uses: google-github-actions/setup-gcloud@v2
- name: Get NPM token
id: npm-token
run: |
token=$(gcloud secrets versions access latest --secret=npm-token --project=gcp-github-secrets)
echo "::add-mask::$token"
echo "token=$token" >> "$GITHUB_OUTPUT"
- name: Publish ${{ github.ref }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ steps.npm-token.outputs.token }}