-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.46 KB
/
semantic-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Semantic release
on:
push:
branches:
- main
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
# setting up Node
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
# disable package-lock.json to stop it being created
- name: Disable package-lock.json
run: npm config set package-lock false
# Installing package dependencies
- name: Install dependencies
run: |
npm i -D [email protected] conventional-changelog-conventionalcommits semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/exec @semantic-release/changelog @semantic-release/github
- name: New tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: geokrety-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: geokrety-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npx semantic-release