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-07-17 13:32:02 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-07-27 15:24:49 +00:00
|
|
|
|
|
|
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
2024-07-17 13:32:02 +00:00
|
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
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 }}
|