Prepare Frost 1.0.0 release candidate
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
name: Release and RC
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Verify and publish
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
container:
|
||||
image: mcr.microsoft.com/playwright:v1.65.1-noble
|
||||
|
||||
steps:
|
||||
- name: Check out tagged source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Configure Node and npm registry
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "24"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install locked dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Verify tag and select npm channel
|
||||
id: release
|
||||
shell: bash
|
||||
run: |
|
||||
channel="$(node scripts/check-release-tag.mjs "${{ gitea.ref_name }}")"
|
||||
echo "channel=${channel}" >> "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Run the complete release contract
|
||||
run: npm run test:release
|
||||
|
||||
- name: Verify generated contracts are committed
|
||||
run: git diff --exit-code -- utilities.css public-api.json package-lock.json
|
||||
|
||||
- name: Publish package
|
||||
run: npm publish --tag "${{ steps.release.outputs.channel }}" --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
||||
Reference in New Issue
Block a user