Skip to content

Commit 4118076

Browse files
committed
2 parents cc403d6 + ac6f97f commit 4118076

File tree

1 file changed

+1
-49
lines changed

1 file changed

+1
-49
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ jobs:
2525

2626
- run: npm install
2727

28-
- run: |
29-
npm run lint
30-
npm run format
31-
3228
- name: Build the package
3329
run: npm run build
3430

@@ -48,50 +44,6 @@ jobs:
4844
preview=$(node -p 'require("./package.json").preview ? "true" : "false"')
4945
echo "::set-output name=preview::$preview"
5046
51-
publish-dev:
52-
needs: build
53-
runs-on: ubuntu-latest
54-
55-
if: needs.build.outputs.preview == 'true'
56-
57-
steps:
58-
- uses: actions/checkout@v3
59-
60-
- name: Download artifact
61-
uses: actions/download-artifact@v2
62-
with:
63-
name: dist-folder
64-
path: dist
65-
66-
- run: ls
67-
68-
- name: Publish to NPM (Dev Version)
69-
run: |
70-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
71-
npm publish --tag=dev
72-
73-
publish-prod:
74-
needs: build
75-
runs-on: ubuntu-latest
76-
77-
if: needs.build.outputs.preview != 'true'
78-
79-
steps:
80-
- uses: actions/checkout@v3
81-
82-
- name: Download artifact
83-
uses: actions/download-artifact@v2
84-
with:
85-
name: dist-folder
86-
path: dist
87-
88-
- run: ls
89-
90-
- name: Publish to NPM (Prod Version)
91-
run: |
92-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
93-
npm publish
94-
9547
release:
9648
needs: build
9749
runs-on: ubuntu-latest
@@ -106,4 +58,4 @@ jobs:
10658
body: |
10759
Release v${{ needs.build.outputs.tag }}
10860
draft: false
109-
prerelease: ${{ needs.build.outputs.preview == 'true' }}
61+
prerelease: ${{ needs.build.outputs.preview == 'true' }}

0 commit comments

Comments
 (0)