forked from brianc/node-postgres
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 844 Bytes
/
deploy-pg.yml
File metadata and controls
40 lines (33 loc) · 844 Bytes
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
32
33
34
35
36
37
38
39
40
name: Deploy pg package
on:
push:
branches:
- master
paths:
- 'packages/pg/**'
workflow_dispatch:
inputs:
version:
description: 'Version to publish (optional)'
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
# 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