File tree Expand file tree Collapse file tree 2 files changed +23
-37
lines changed
Expand file tree Collapse file tree 2 files changed +23
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- workflow_dispatch :
4+ push :
5+ branches :
6+ - " main"
7+ - " next"
58
69env :
710 HUSKY : 0
@@ -14,11 +17,28 @@ jobs:
1417 steps :
1518 - uses : actions/checkout@v3
1619
20+ - uses : actions/setup-node@v3
21+ with :
22+ cache : " yarn"
23+ node-version-file : " .nvmrc"
24+
25+ # No lint or prettier here since they were supposed to run on PR action
26+ - name : Build
27+ run : |
28+ yarn install --frozen-lockfile
29+ yarn build
30+
31+ - name : Semantic Release
32+ uses : cycjimmy/semantic-release-action@v3
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
36+
1737 - name : Publish to Cloudflare Pages
1838 uses : cloudflare/pages-action@1
1939 with :
20- apiToken : ${{ secrets.CF_API_TOKEN }}
21- accountId : ${{ secrets.CF_ACCOUNT_ID }}
40+ apiToken : ${{ secrets.CLOUDFLARE_TOKEN }}
41+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT }}
2242 projectName : ${{ secrets.CF_PROJECT_NAME }}
2343 directory : public
2444 gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments