Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/deploy-pg-protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,31 @@ on:
required: false
type: string

permissions:
contents: read
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build package
run: cd packages/pg-protocol && yarn build


# Ensure npm 11.5.1 or later is installed for trusted publishing support
- name: Update npm
run: npm install -g npm@latest

- name: Publish to npm
run: cd packages/pg-protocol && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 8 additions & 2 deletions .github/workflows/deploy-pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
required: false
type: string

permissions:
contents: read
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -28,7 +32,9 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

# Ensure npm 11.5.1 or later is installed for trusted publishing support
- name: Update npm
run: npm install -g npm@latest

- name: Publish to npm
run: cd packages/pg && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}