2023-07-27 15:24:49 +00:00
|
|
|
name: Reproducible Builds
|
|
|
|
on:
|
|
|
|
push:
|
2024-07-17 14:13:53 +00:00
|
|
|
# On tags
|
2023-07-27 15:24:49 +00:00
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
# Or manually
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
2024-07-17 14:13:53 +00:00
|
|
|
description: 'Version to verify (>= 4.0.0-rc.1)'
|
2023-07-27 15:24:49 +00:00
|
|
|
required: false
|
|
|
|
|
2024-07-17 14:13:53 +00:00
|
|
|
|
2023-07-27 15:24:49 +00:00
|
|
|
jobs:
|
|
|
|
run:
|
|
|
|
name: Verify release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# skip on forks
|
|
|
|
if: ${{ github.repository == 'jquery/jquery' }}
|
|
|
|
env:
|
|
|
|
NODE_VERSION: 20.x
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-10-01 00:23:58 +00:00
|
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2023-07-27 15:24:49 +00:00
|
|
|
|
|
|
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
2024-10-01 00:23:58 +00:00
|
|
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
|
2023-07-27 15:24:49 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
|
2024-07-17 14:13:53 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
2023-07-27 15:24:49 +00:00
|
|
|
- run: npm run release:verify
|
|
|
|
env:
|
|
|
|
VERSION: ${{ github.event.inputs.version || github.ref_name }}
|