Skip to content

Commit

Permalink
create npmjs.yml for github actions (#2031)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
Neethu-Mohan and dogi authored Feb 11, 2021
1 parent 5f75ace commit 5a4b031
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
File renamed without changes.
34 changes: 34 additions & 0 deletions .github/workflows/npmjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: publish on npmjs.org

on:
push:
branches:
- 'master'

jobs:
build:
name: treehouses/cli
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- name: build
run: |
./templates/blocker/blocker.sh
ls -al ./templates/blocker/
sudo npm install -g auto-changelog
auto-changelog --version
auto-changelog --template .github/workflows/changelog-template.hbs
sed -i -e "s#&lt;#<#g" CHANGELOG.md
sed -i -e "s#&gt;#>#g" CHANGELOG.md
ls -al
cat CHANGELOG.md
- name: publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .travis.yml → .travis.yml.old
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_js:
before_install:
- npm install -g auto-changelog
install:
- auto-changelog --template .travis/changelog-template.hbs
- auto-changelog --template .github/workflows/changelog-template.hbs
- sed -i -e "s#&lt;#<#g" CHANGELOG.md
- sed -i -e "s#&gt;#>#g" CHANGELOG.md
- ls -al
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.24.86",
"version": "1.25.0",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit 5a4b031

Please sign in to comment.