forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1.04 KB
/
nightly-release.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
name: Nightly Release
on:
schedule:
# Run every week day at 01:00 (24hr format)
- cron: '0 1 * * 1-5'
jobs:
release:
runs-on: macos-14
# Needed as recommended by npm docs on publishing with provenance https://docs.npmjs.com/generating-provenance-statements
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node.js 20.x
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20.x'
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Build project
run: yarn build
- name: Publish nightly release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
yarn lerna publish --canary minor --force-publish --exact --dist-tag nightly --preid alpha --no-push --no-git-tag-version --yes