Skip to content
Myr

release.yml

This file

Path

.github/workflows/release.yml

31 lines · 844 bytes · YAML

Last changed by

Chore: bump node version for github actions (#1166)Michel Weststratebefore adoption3629a51

History of this file

Take it

chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa

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

fix: release missing dist/ folderMichel Weststratebefore adoptionbfb8dec

line 10why, one step back
10

chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa

lines 11–14why, one step back
11jobs:
12 release:13 runs-on: ubuntu-latest14 steps:

fix: Upgrade Github actions to Node 16 attempt 1Michel Weststratebefore adoption9d4ea93

lines 15–16why, one step back
15 - uses: actions/checkout@v3
16 - uses: actions/setup-node@v3

chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa

line 17why, one step back
17 with:

Chore: bump node version for github actions (#1166)Michel Weststratebefore adoption3629a51

line 18why, one step back
18 node-version: 20

chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa

lines 19–20why, one step back
19 - name: install
20 run: yarn

chore: let's test before publishMichel Weststratebefore adoption3f9a94e

lines 21–22why, one step back
21 - name: test
22 run: yarn test

fix: release missing dist/ folderMichel Weststratebefore adoptionbfb8dec

lines 23–24why, one step back
23 - name: build
24 run: yarn build

chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa

line 25why, one step back
25 - name: publish

chore: [workflows] don't release from forksMichel Weststratebefore adoption7f41483

lines 26–27why, one step back
26 # avoid release on fork
27 if: github.repository == 'immerjs/immer'

chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa

lines 28–30why, one step back
28 env:
29 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}30 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

fix: Upgrade Github actions to Node 16 attempt 2Michel Weststratebefore adoption082eecd

line 31why, one step back
31 run: yarn semantic-release --branches main