generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 106
42 lines (34 loc) · 944 Bytes
/
packages.release.yml
File metadata and controls
42 lines (34 loc) · 944 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
41
42
name: NPM Packages Release
# NOTE: id-token to publish with provenance, content to publish release notes
permissions:
contents: write
id-token: write
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [ 24.x ]
steps:
- name: Checkout code with submodules
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
ssh-key: ${{ secrets.SSH_DOCK_SERVER_PRIVATE_KEY }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install deps
run: yarn --immutable
- name: Publish packages
run: node bin/publish-packages.js
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}