Skip to content

Commit

Permalink
Merge pull request #3 from bettyblocks/feat/adds-npm-publishing-PAGE-…
Browse files Browse the repository at this point in the history
…1084

feat: adds npm release
  • Loading branch information
jrquak authored Jan 20, 2022
2 parents adf4d20 + b40c7d4 commit 51a909e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Commit lint check

on:
pull_request:
branches-ignore:
- master
branches: [master]

jobs:
commit_lint:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sdk",
"name": "@betty-blocks/component-sdk",
"version": "1.0.0",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down

0 comments on commit 51a909e

Please sign in to comment.