Skip to content

Commit

Permalink
create action
Browse files Browse the repository at this point in the history
  • Loading branch information
7nik committed Sep 9, 2021
1 parent 37e8734 commit 9769eb1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
make-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- name: Create Release
# You may pin to the exact commit or the version.
# uses: ncipollo/release-action@10c84d509b28aae3903113151bfd832314964f2e
uses: ncipollo/release-action@v1.8.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ githhub.run_number }}
name: release v${{ githhub.run_number }}
artifact: build/calculator.user.js

0 comments on commit 9769eb1

Please sign in to comment.