Skip to content

Commit

Permalink
build: set up automated releases (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Jun 13, 2024
1 parent 321f55e commit 834c255
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Package to npm
on:
release:
types: [published]
workflow_dispatch:
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: pnpm publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ steps.secrets.outputs.NPM_TOKEN }}

0 comments on commit 834c255

Please sign in to comment.