File tree Expand file tree Collapse file tree 1 file changed +1
-49
lines changed Expand file tree Collapse file tree 1 file changed +1
-49
lines changed Original file line number Diff line number Diff line change 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
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
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' }}
You can’t perform that action at this time.
0 commit comments