-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 875 Bytes
/
Copy pathdeploy.yml
File metadata and controls
35 lines (32 loc) · 875 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
name: Publish to NPM registry
on:
push:
branches:
- master
- release/*
- event-logging
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC
contents: read
packages: write
environment: Production
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Version Patcher
uses: justalemon/VersionPatcher@v0.8
with:
version: 1.0.${{ github.run_number }}
npm-files: 'package.json'
# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- run: npm publish --access public --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}