forked from algolia/algoliasearch-client-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 806 Bytes
/
release.yml
File metadata and controls
40 lines (33 loc) · 806 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: Release packages
on:
push:
branches:
- main
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
release:
name: Publish
runs-on: ubuntu-22.04
if: "startsWith(github.event.head_commit.message, 'chore: release')"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: yarn
- name: Install JavaScript dependencies
shell: bash
run: yarn install
- name: Build clients
shell: bash
run: yarn build
- name: Publish to NPM
shell: bash
run: yarn release:publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}