release.yml
This file
Path
.github/workflows/release.yml
31 lines · 830 bytes · YAML
Last changed by
chore: fix release jobMichel Weststratebefore adoption2794576
History of this fileTake it
chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa
lines 1–9why, 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:9 - masterfix: release missing dist/ folderMichel Weststratebefore adoptionbfb8dec
line 10why, one step back10chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa
lines 11–17why, one step back11jobs:12 release:13 runs-on: ubuntu-latest14 steps:15 - uses: actions/checkout@v216 - uses: actions/setup-node@v217 with:chore: fix release jobMichel Weststratebefore adoption2794576
line 18why, one step back18 node-version: 16chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa
lines 19–20why, one step back19 - name: install20 run: yarnchore: let's test before publishMichel Weststratebefore adoption3f9a94e
lines 21–22why, one step back21 - name: test22 run: yarn testfix: release missing dist/ folderMichel Weststratebefore adoptionbfb8dec
lines 23–24why, one step back23 - name: build24 run: yarn buildchore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa
line 25why, one step back25 - name: publishchore: [workflows] don't release from forksMichel Weststratebefore adoption7f41483
lines 26–27why, one step back26 # avoid release on fork27 if: github.repository == 'immerjs/immer'chore: semantic-release + GH actionsMichel Weststratebefore adoption38964fa
lines 28–31why, one step back28 env:29 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}30 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}31 run: yarn semantic-release