-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (33 loc) · 1019 Bytes
/
release-cli.yml
File metadata and controls
46 lines (33 loc) · 1019 Bytes
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
name: NodeJS with Webpack
on:
push:
branches: [ master ]
jobs:
build:
if: contains(github.event.head_commit.message, '(release)')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Initialize git
run: git config --global user.email "release-bot@crusher.dev" && git config --global user.name "Release Bot"
- name: Use Node.js 14.17.0
uses: actions/setup-node@v3
with:
node-version: 14.17.0
registry-url: 'https://registry.npmjs.org'
- name: Install yarn
run: npm install -g yarn
- name: Use cache for yarn if available
uses: c-hive/gha-yarn-cache@v1
- name: Install crusher modules
run: yarn
- name: Update to new version
run: npm version patch
- name: Build crusher-cli
run: yarn webpack
- name: Publish the npm package
run: cd dist && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update upgrade commit
run: git push