Skip to content
Myr

release.yml

This file

Path

.github/workflows/release.yml

36 lines · 994 bytes · YAML

Last changed by

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

History of this file

Take it

The walk stopped after 200 commits: lines older than 07f5cc9 point at it.

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 1–8why, one step back
1# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages34name: Release56on:7 push:8 branches:

fix: release and publish from 'main' rather than 'master' branchMichel Weststratebefore adoption82acc40

line 9why, one step back
9 - main

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

line 10why, one step back
10

chore: migrate release flow to OIDCMichel Weststratebefore adoptionfe3c9f8

lines 11–15why, one step back
11permissions:
12 contents: write13 id-token: write14 pull-requests: write15

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 16–19why, one step back
16jobs:
17 release:18 runs-on: ubuntu-latest19 steps:

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

lines 20–21why, one step back
20 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
21 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

line 22why, one step back
22 with:

chore: migrate release flow to OIDCMichel Weststratebefore adoptionfe3c9f8

lines 23–24why, one step back
23 node-version: 24
24 registry-url: https://registry.npmjs.org

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 25–35why, one step back
25 - name: install
26 run: yarn27 - name: test28 run: yarn test29 - name: build30 run: yarn build31 - name: publish32 # avoid release on fork33 if: github.repository == 'immerjs/immer'34 env:35 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

chore: release fixupMichel Weststratebefore adoption0e2feee

line 36why, one step back
36 run: npm run release