Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,37 @@ on:
branches:
- stable

permissions:
contents: read
id-token: write

jobs:
build:
name: Build, Test, and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 18
- name: Configure Identity
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: 🔒 Configure Identity
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Prepare NPM Token
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
- name: 🟢 Ensure Latest npm
run: npm install -g npm@latest
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Dependencies
- name: 📦 Install Dependencies
run: npm ci --no-package-lock
shell: bash
- name: Bootstrap
- name: 🔄 Bootstrap
run: npm run bootstrap -- --ignore-scripts
shell: bash
- name: Release
run: npm run publish:ci
- name: 🚀 Release
run: npm run publish:ci -- --provenance
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ on:

jobs:
build-and-test:
name: Build and Test (Node ${{ matrix.node }})
name: 🏗️ Build and Test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
node:
- 18.x
- 20.x
steps:
- uses: actions/setup-node@v4
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v4
- name: Restore Dependency Cache
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: 🔄 Restore Dependency Cache
uses: actions/cache@v4
with:
path: ~/.npm
Expand Down