Skip to content

Commit

Permalink
ci: setup autopublish
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWitchBella committed Aug 21, 2021
1 parent ca1823a commit 5e3a678
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release
on:
push:
branches:
- main
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
cache: yarn
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn publish:npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"microbundle": "^0.13.3"
},
"scripts": {
"prepare": "microbundle --target node"
"prepare": "microbundle --target node",
"prepublishOnly": "isbl-publisher prepublishOnly",
"publish:npm": "isbl-publisher publish --no-draft"
},
"repository": {
"type": "git",
"url": "https://github.com/CodeWitchBella/isbl-settings.git"
}
}

0 comments on commit 5e3a678

Please sign in to comment.