-
Notifications
You must be signed in to change notification settings - Fork 102
31 lines (31 loc) · 1.04 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish Package to npm
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: 'read'
id-token: 'write'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/626179414504/locations/global/workloadIdentityPools/ga-discord-interactions-js/providers/ga-discord-interactions-js'
service_account: 'ga-discord-interactions-js@discord-app-city-prd.iam.gserviceaccount.com'
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
NPM_TOKEN:discord-app-city-prd/discord-interactions-js-deploy-token
- name: Publish 🚀
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ steps.secrets.outputs.NPM_TOKEN }}