Skip to content
Merged
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
50 changes: 19 additions & 31 deletions .github/workflows/cd-release.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,36 @@
name: CD - Release
name: Publish to npm

on:
push:
tags:
- 'v*'

permissions:
contents: read
id-token: write
branches:
- "master" # Triggers on pushes to the master branch
workflow_dispatch: # Allows manual trigger from GitHub UI

jobs:
release:
name: CD - Release
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for npm provenance

steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'
node-version: "20"
registry-url: "https://registry.npmjs.org"
cache: "npm"

- name: Install
- name: Install dependencies
run: npm ci

- name: Format (check)
run: npm run format

- name: Lint
run: npm run lint

- name: Typecheck
run: npm run typecheck

- name: Test
run: npm test

- name: Build
- name: Build package
run: npm run build

# Trusted Publishing (OIDC) – requires npm package configured for GitHub OIDC
- name: Publish to npm (OIDC)
run: npx changeset publish
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43 changes: 0 additions & 43 deletions .github/workflows/ci-pr-validation.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/ci-release-check.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
fund=false
audit=false
registry=https://registry.npmjs.org/

# scoped registry only for @ciscode-apps and let npmjs be default
@ciscode-template-model:registry=https://pkgs.dev.azure.com/CISCODEAPPS/Templates/_packaging/packages-fe/npm/registry/
always-auth=true
Loading