Skip to content

Merge pull request #138 from flagship-io/cd-migration #40

Merge pull request #138 from flagship-io/cd-migration

Merge pull request #138 from flagship-io/cd-migration #40

Workflow file for this run

name: NPM CD
on:
push:
tags:
- "5.[0-9]+.[0-9]+"
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Set Yarn Version
run: corepack prepare yarn@4.7.0 --activate
- name: Use Node.js 23.x
uses: actions/setup-node@v4
with:
node-version: '23.x'
registry-url: 'https://registry.npmjs.org'
cache: "yarn"
cache-dependency-path: yarn.lock
- name: Install modules
run: yarn install
- run: yarn test
- run: yarn build
- run: npm publish --provenance --access public