Skip to content

Commit

Permalink
Merge pull request #22 from amtrack/chore/release-npm-package-via-gh-…
Browse files Browse the repository at this point in the history
…workflow

chore(CI): release npm package via GH workflow
  • Loading branch information
amtrack authored Dec 1, 2022
2 parents 2851997 + 309c076 commit a1e3355
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test and Release

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
yarn install
yarn global add sfdx-cli
# - name: Run tests
# run: yarn run test
- name: Release package
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/package-lock.json
/tmp
node_modules
/oclif.manifest.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hutte",
"description": "CLI for hutte.io",
"version": "0.0.47",
"version": "0.0.0-development",
"author": "@hutte-io",
"bugs": "https://github.com/hutte-io/cli/issues",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
branches: ["master"]
};

0 comments on commit a1e3355

Please sign in to comment.