From 5b5085968233610bb57a808e41743c929f263acb Mon Sep 17 00:00:00 2001 From: Martijn Jansen Date: Thu, 20 Jan 2022 15:35:56 +0100 Subject: [PATCH 1/2] feat: adds release yml --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ package.json | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..6bbf8f17 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release +on: + push: + branches: [master] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.GH_TOKEN }} + - name: Use Node.js 16.11.1 + uses: actions/setup-node@v1 + with: + node-version: '16.11.1' + - run: npm install + - name: Run build + run: npm run build + - name: Release notes + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/package.json b/package.json index 09165914..ca2935e5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "sdk", + "name": "@betty-blocks/component-sdk", "version": "1.0.0", "main": "build/index.js", "types": "build/index.d.ts", From b40c7d42f37968cf55907c7aa2c1f1eda8b2b9f4 Mon Sep 17 00:00:00 2001 From: Martijn Jansen Date: Thu, 20 Jan 2022 15:37:22 +0100 Subject: [PATCH 2/2] chore: run ci on any pull request --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13d95004..3e41138d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,7 @@ name: Commit lint check on: pull_request: - branches-ignore: - - master + branches: [master] jobs: commit_lint: