Skip to content

Commit

Permalink
Merge pull request #131 from yvesgurcan/gh-release
Browse files Browse the repository at this point in the history
Gh release
  • Loading branch information
yvesgurcan authored Jan 24, 2020
2 parents 891ac83 + 0724478 commit 2968a96
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,34 @@ on:
- master

jobs:
publish-npm:
name: Create release
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Set up workflow
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- name: Tag the library
id: autotag
uses: butlerlogic/action-autotag@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefx: "v"
- name: GitHub release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ steps.autotag.outputs.version }}
prerelease: false
publish-gpr:
name: Publish to GPR
if: github.event.pull_request.merged
Expand Down
4 changes: 2 additions & 2 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>web-midi-player 1.1.17 | Documentation</title>
<title>web-midi-player 1.1.18 | Documentation</title>
<meta name='description' content='🎹 Event-driven JavaScript library to enable MIDI playback in the browser.'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>web-midi-player</h3>
<div class='mb1'><code>1.1.17</code></div>
<div class='mb1'><code>1.1.18</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "web-midi-player",
"name-display": "Web Midi Player",
"description": "🎹 Event-driven JavaScript library to enable MIDI playback in the browser.",
"version": "1.1.17",
"version": "1.1.18",
"author": {
"name": "Yves Gurcan",
"url": "http://yvesgurcan.com/"
Expand Down
10 changes: 5 additions & 5 deletions scripts/gpr.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const fs = require('fs')
const { join } = require('path')
const fs = require('fs');
const { join } = require('path');

// Get the package obejct and change the name
const pkg = require('../package.json')
pkg.name = '@yvesgurcan/web-midi-player'
const pkg = require('../package.json');
pkg.name = '@yvesgurcan/web-midi-player';

// Update package.json with the udpated name
fs.writeFileSync(join(__dirname, '../package.json'), JSON.stringify(pkg))
fs.writeFileSync(join(__dirname, '../package.json'), JSON.stringify(pkg));

0 comments on commit 2968a96

Please sign in to comment.