-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (34 loc) · 992 Bytes
/
create-tag.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
name: Release
on:
push:
branches:
- master
jobs:
create_tag:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
- name: Build files using ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Release new version
id: release
run: |
npm ci
npm run release
env:
CI: true
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GIT_AUTHOR_NAME: themeisle[bot]
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_ANNOUNCEMENTS }}
SEMANTIC_RELEASE_PACKAGE: Optimole WP
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }}
GIT_COMMITTER_NAME: themeisle[bot]
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }}