Skip to content

Commit 9769eb1

Browse files
authored
create action
1 parent 37e8734 commit 9769eb1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
workflow_dispatch:
12+
13+
jobs:
14+
make-release:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: 16.x
23+
cache: 'npm'
24+
- run: npm ci
25+
- run: npm run build --if-present
26+
- name: Create Release
27+
# You may pin to the exact commit or the version.
28+
# uses: ncipollo/release-action@10c84d509b28aae3903113151bfd832314964f2e
29+
uses: ncipollo/[email protected]
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
tag: v${{ githhub.run_number }}
33+
name: release v${{ githhub.run_number }}
34+
artifact: build/calculator.user.js

0 commit comments

Comments
 (0)