Skip to content

Commit d08aca7

Browse files
committed
chore(build): remove sematnic release
1 parent 1d1a689 commit d08aca7

File tree

2 files changed

+57
-46
lines changed

2 files changed

+57
-46
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy Storybook
1+
name: Build Package
22

33
on:
44
push
@@ -17,48 +17,4 @@ jobs:
1717
with:
1818
node-version: 16
1919
- run: npm ci
20-
- run: npm run rollup
21-
22-
publish-gpr:
23-
needs: build
24-
runs-on: ubuntu-latest
25-
permissions:
26-
packages: write
27-
contents: read
28-
steps:
29-
- uses: actions/checkout@v3
30-
with:
31-
fetch-depth: 0
32-
- uses: actions/setup-node@v3
33-
with:
34-
node-version: 16
35-
- name: Install dependencies
36-
run: npm ci
37-
- name: Release
38-
run: npx semantic-release
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
DEBUG: semantic-release:*
43-
44-
pages:
45-
runs-on: ubuntu-latest
46-
environment:
47-
name: github-pages
48-
url: ${{ steps.deployment.outputs.page_url }}
49-
steps:
50-
- name: Checkout
51-
uses: actions/checkout@v3
52-
- name: Setup Pages
53-
uses: actions/configure-pages@v2
54-
- name: Install and Build
55-
run: |
56-
npm install
57-
npm run build-storybook -- -o public
58-
- name: Upload artifact
59-
uses: actions/upload-pages-artifact@v1
60-
with:
61-
path: 'public'
62-
- name: Deploy to GitHub Pages
63-
id: deployment
64-
uses: actions/deploy-pages@v1
20+
- run: npm run rollup
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish Package to nmpjs
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
- run: npm ci
16+
- run: npm run rollup
17+
18+
publish-gpr:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
permissions:
22+
packages: write
23+
contents: read
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 16
29+
registry-url: https://npm.pkg.github.com/
30+
- run: npm ci
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
34+
35+
pages:
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v3
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v2
45+
- name: Install and Build
46+
run: |
47+
npm install
48+
npm run build-storybook -- -o public
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v1
51+
with:
52+
path: 'public'
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)