Skip to content

Commit

Permalink
More CI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Jan 8, 2020
1 parent 227a9c9 commit f617486
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 33 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
name: Create & Publish Release
on:
push:
tags:
- 'v*'

name: Create Release

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

release:
needs: build
name: Create Release
runs-on: ubuntu-latest
steps:
Expand All @@ -22,3 +32,17 @@ jobs:
release_name: ${{ github.ref }}
draft: false
prerelease: false

publish-npm:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
30 changes: 0 additions & 30 deletions .github/workflows/npm-publish.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/push-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build & Test
on:
push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spique",
"version": "3.0.4",
"version": "3.0.5",
"description": "A spiral deque - high performance and dynamic queue size",
"main": "spique.js",
"scripts": {
Expand Down

0 comments on commit f617486

Please sign in to comment.