diff --git a/.travis/changelog-template.hbs b/.github/workflows/changelog-template.hbs similarity index 100% rename from .travis/changelog-template.hbs rename to .github/workflows/changelog-template.hbs diff --git a/.github/workflows/npmjs.yml b/.github/workflows/npmjs.yml new file mode 100644 index 0000000000..223defcaa9 --- /dev/null +++ b/.github/workflows/npmjs.yml @@ -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#<#<#g" CHANGELOG.md + sed -i -e "s#>#>#g" CHANGELOG.md + ls -al + cat CHANGELOG.md + - name: publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.travis.yml b/.travis.yml.old similarity index 93% rename from .travis.yml rename to .travis.yml.old index 32202dbbdc..ae66e1e485 100644 --- a/.travis.yml +++ b/.travis.yml.old @@ -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#<#<#g" CHANGELOG.md - sed -i -e "s#>#>#g" CHANGELOG.md - ls -al diff --git a/package.json b/package.json index fb775cfe7c..b2a91724d4 100644 --- a/package.json +++ b/package.json @@ -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",