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 fileTake 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 back1# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created2# 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 back9 - mainchore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
line 10why, one step back10chore: migrate release flow to OIDCMichel Weststratebefore adoptionfe3c9f8
lines 11–15why, one step back11permissions:12 contents: write13 id-token: write14 pull-requests: write15chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 16–19why, one step back16jobs: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 back20 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.121 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
line 22why, one step back22 with:chore: migrate release flow to OIDCMichel Weststratebefore adoptionfe3c9f8
lines 23–24why, one step back23 node-version: 2424 registry-url: https://registry.npmjs.orgchore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 25–35why, one step back25 - name: install26 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 back36 run: npm run release