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: 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",