Skip to content

Commit

Permalink
Merge pull request #8 from stayintarkov/Workflows
Browse files Browse the repository at this point in the history
Add CI Workflow & Change Release Workflow
  • Loading branch information
paulov-t committed Dec 4, 2023
2 parents 698e5d4 + 8f4bbfc commit 528f5ff
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 127 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node.js CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- run: npm ci
- run: npm run build --if-present
- run: npm test
115 changes: 0 additions & 115 deletions .github/workflows/pre-release.yml

This file was deleted.

22 changes: 10 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
on:
push:
branches:
- 'master'
workflow_dispatch:

name: Create Release



jobs:
build:
permissions: write-all
Expand All @@ -20,18 +16,20 @@ jobs:
uses: actions/checkout@v2
with:
ref: 'master'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run build
- name: Create Release
id: create_release
uses: actions/create-release@latest
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.event.repository.updated_at }}
draft: true
prerelease: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
generate_release_notes: true

0 comments on commit 528f5ff

Please sign in to comment.