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: 0 additions & 50 deletions .github/workflows/deploy-beta.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/deploy-release.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: 'Build & Deploy'

on:
push:
branches:
- main
release:
types:
- published

permissions:
contents: read
id-token: write

concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
deploy_beta:
name: Deploy to NPM (beta)
if: github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
scope: nvuillam
- run: npm ci
- run: |
git config --global user.name nvuillam
git config --global user.email [email protected]
- name: Bump beta prerelease version
run: |
BETAID=$(date '+%Y%m%d%H%M')
npm version prerelease --preid="beta${BETAID}"
shell: bash
- name: Publish beta package
run: npm publish --tag beta --provenance

deploy_release:
name: Deploy to NPM (release)
if: github.event_name == 'release' && github.event.action == 'created'
runs-on: ubuntu-latest
environment:
name: release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
scope: nvuillam
- run: npm ci
- run: |
git config --global user.name nvuillam
git config --global user.email [email protected]
- name: Publish release package
run: npm publish --provenance
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## [4.3.2] 2025-01-24

- Upgrade dependencies
- Refactor workflows to use OIDC (npm Trusted Publishers) to publish package

## [4.3.1] 2025-12-04

- Upgrade njre dependency
Expand Down
Loading