mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
Delete upstream workflows
This fork does not ship upstream's releases, and its hosted-runner jobs never start here. Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
groups:
|
||||
actions:
|
||||
patterns:
|
||||
- "*"
|
||||
@@ -1,41 +0,0 @@
|
||||
name: Build
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
cache-key:
|
||||
value: ${{ jobs.build.outputs.cache-key }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
concurrency: build-${{ github.ref }}
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
cache-key: ${{ steps.cache-key.outputs.value }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- id: cache-key
|
||||
run: echo "value=dist-${{ hashFiles('src/**/*.ts', 'tsconfig.json', 'tsconfig/*.json', 'package.json', 'jsr.json', 'tools/*.cjs', 'tools/*.js', '.github/workflows/*.yml', 'package-lock.json') }}" >> $GITHUB_OUTPUT
|
||||
- name: Cache dist
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
id: dist
|
||||
with:
|
||||
path: dist
|
||||
key: ${{ steps.cache-key.outputs.value }}
|
||||
- name: Build
|
||||
run: npm run build-all
|
||||
if: ${{ steps.dist.outputs.cache-hit != 'true' }}
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
- run: git reset HEAD --hard
|
||||
@@ -1,25 +0,0 @@
|
||||
name: "Lock threads"
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '11 11 * * 1'
|
||||
|
||||
jobs:
|
||||
lock:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
discussions: write
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
issue-inactive-days: "90"
|
||||
issue-lock-reason: ""
|
||||
pr-inactive-days: "90"
|
||||
pr-lock-reason: ""
|
||||
discussion-inactive-days: "90"
|
||||
@@ -1,37 +0,0 @@
|
||||
name: npm availability
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag:
|
||||
description: Release tag to monitor
|
||||
required: true
|
||||
type: string
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: Release tag to monitor
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
wait:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 65
|
||||
permissions:
|
||||
contents: write
|
||||
discussions: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
- name: Wait for npm availability
|
||||
run: node tools/wait-for-npm.cjs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
RELEASE_TAG: ${{ inputs.tag }}
|
||||
@@ -1,103 +0,0 @@
|
||||
name: Release
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ['v6.[0-9]+.[0-9]+']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: ./.github/workflows/build.yml
|
||||
|
||||
npm:
|
||||
needs:
|
||||
- build
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
registry-url: https://registry.npmjs.org
|
||||
- name: Load cached dist
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
id: dist
|
||||
with:
|
||||
path: dist
|
||||
key: dist-${{ hashFiles('src/**/*.ts', 'tsconfig.json', 'tsconfig/*.json', 'package.json', 'jsr.json', 'tools/*.cjs', 'tools/*.js', '.github/workflows/*.yml', 'package-lock.json') }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Prepare distribution
|
||||
run: node tools/publish.cjs
|
||||
- run: npm install -g npm@latest
|
||||
- run: npm stage publish
|
||||
|
||||
jsr:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: npx jsr publish
|
||||
|
||||
cleanup:
|
||||
needs:
|
||||
- npm
|
||||
- jsr
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: git push origin $GITHUB_SHA:v6.x
|
||||
- run: git rm -r dist
|
||||
- run: |
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git commit -m "chore: cleanup after release"
|
||||
- run: git push origin HEAD:main
|
||||
|
||||
github:
|
||||
needs:
|
||||
- npm
|
||||
- jsr
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
discussions: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: node tools/release-notes.cjs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
npm-availability:
|
||||
needs:
|
||||
- github
|
||||
permissions:
|
||||
contents: write
|
||||
discussions: write
|
||||
uses: ./.github/workflows/npm-availability.yml
|
||||
with:
|
||||
tag: ${{ github.ref_name }}
|
||||
@@ -1,21 +0,0 @@
|
||||
name: Retry
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Test
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
retry:
|
||||
permissions:
|
||||
actions: write
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository == 'panva/jose' && github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }}
|
||||
steps:
|
||||
- run: gh api -XPOST ${{ github.event.workflow_run.rerun_url }}-failed-jobs
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
@@ -1,185 +0,0 @@
|
||||
name: Test
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
- cron: '11 11 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: ./.github/workflows/build.yml
|
||||
|
||||
package:
|
||||
needs:
|
||||
- build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- name: Load cached dist
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: dist
|
||||
key: ${{ needs.build.outputs.cache-key }}
|
||||
fail-on-cache-miss: true
|
||||
- name: Documented subpath specifiers exist
|
||||
run: npm run check:subpaths
|
||||
- name: Type check the conformance suite
|
||||
run: npm run typecheck:tap
|
||||
- name: Type check the emitted declarations
|
||||
run: npm run typecheck:dist
|
||||
- name: Type-level regression tests
|
||||
run: npm run typecheck:types
|
||||
- name: Packaging metadata and type resolution
|
||||
run: npm run check:packaging
|
||||
- name: JWS and JWE stay out of each other's bundles
|
||||
run: npm run check:bundles
|
||||
- name: JSR slow types
|
||||
run: npm run build:jsr
|
||||
- name: Docs are in sync with src
|
||||
run: |
|
||||
npm run docs
|
||||
git diff --exit-code -- docs/
|
||||
test -z "$(git status --porcelain --untracked-files=all -- docs/)"
|
||||
|
||||
node-versions:
|
||||
uses: panva/.github/.github/workflows/node-versions.yml@main
|
||||
with:
|
||||
min: 20
|
||||
|
||||
node:
|
||||
needs:
|
||||
- node-versions
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: ${{ fromJSON(needs.node-versions.outputs.matrix) }}
|
||||
suite:
|
||||
- tap:node
|
||||
- test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
id: node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
check-latest: true
|
||||
- run: npm clean-install
|
||||
- name: Run Test Suite
|
||||
run: npm run ${{ matrix.suite }}
|
||||
|
||||
deno:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
|
||||
with:
|
||||
deno-version: latest
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- name: Test Deno Definitions
|
||||
run: deno check --unstable-sloppy-imports src/index.ts
|
||||
- name: Test Deno
|
||||
run: npm run tap:deno
|
||||
|
||||
bun:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
||||
with:
|
||||
bun-version: latest
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- name: Test Bun
|
||||
run: npm run tap:bun
|
||||
|
||||
workerd:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- run: npm install --global workerd
|
||||
- run: npm link workerd
|
||||
- name: Run Test Suite
|
||||
run: npm run tap:workerd
|
||||
|
||||
browsers:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
browser: [chromium, firefox, safari]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- run: npm upgrade playwright
|
||||
- name: get playwright version
|
||||
id: playwright-version
|
||||
run:
|
||||
echo "version=$(npm list playwright --json | jq -r '.dependencies["@playwright/test"].dependencies.playwright.version')" >>
|
||||
$GITHUB_OUTPUT
|
||||
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: ~/Library/Caches/ms-playwright
|
||||
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
|
||||
- run: npm exec --no -- playwright install --only-shell chromium firefox webkit
|
||||
- name: Run Test Suite
|
||||
run: npm run tap:browsers
|
||||
env:
|
||||
BROWSER: ${{ matrix.browser }}
|
||||
|
||||
electron:
|
||||
runs-on: macos-15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
- run: npm clean-install
|
||||
- name: Install Electron
|
||||
run: npm install --global electron
|
||||
- name: Run Test Suite
|
||||
run: npm run tap:electron
|
||||
Reference in New Issue
Block a user