Skip to content

Commit

Permalink
Publish action created.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkotze committed Jul 2, 2022
1 parent f63c883 commit 80d7c35
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Publish"

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Install Git-Mob (link)
run: npm link

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_Publish }}
greater-version-only: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test:w": "env-cmd -f test-helpers/env.js ava --watch --serial --no-worker-threads",
"test": "env-cmd -f ./test-helpers/env.js ava --serial --no-worker-threads",
"js-lint": "xo",
"preversion": "npm test -s",
"preversion": "npm run checks",
"postinstall": "node ./src/install/create-author-file.js"
},
"bin": {
Expand Down

0 comments on commit 80d7c35

Please sign in to comment.