-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (42 loc) · 1.2 KB
/
publish-libs.yml
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
41
42
43
44
45
46
47
48
name: Publish libs
on:
push:
tags:
- '**'
jobs:
publish:
name: Publish packages
runs-on: ubuntu-24.04
strategy:
matrix:
package:
[
{ name: 'lib-apiclient' },
{ name: 'lib-auth' },
{ name: 'lib-aws' },
{ name: 'lib-components' },
{ name: 'lib-config' },
{ name: 'lib-db' },
{ name: 'lib-email' },
{ name: 'lib-function-helpers' },
{ name: 'lib-gameserver' },
{ name: 'lib-http' },
{ name: 'lib-modules' },
{ name: 'lib-queues' },
{ name: 'lib-util' },
]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: ./scripts/dev-init.sh
- name: Authenticate with NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: npm -w packages/${{ matrix.package.name }} publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}