File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 70
70
with :
71
71
github_token : ${{ secrets.GITHUB_TOKEN }}
72
72
publish_dir : .
73
+
74
+ release :
75
+ if : ${{ github.ref == 'refs/heads/main' }}
76
+ needs : [ test, spec ]
77
+ runs-on : ubuntu-latest
78
+ permissions :
79
+ contents : write
80
+ packages : write
81
+ issues : write
82
+ pull-requests : write
83
+ steps :
84
+ - uses : actions/checkout@v4
85
+ - uses : actions/setup-node@v3
86
+ with :
87
+ node-version : 20.x
88
+ - run : npm ci
89
+ - run : npm run build
90
+ - name : Release
91
+ env :
92
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
93
+ GITHUB_TOKEN : ${{ github.token }}
94
+ run : npx semantic-release@22
Original file line number Diff line number Diff line change 94
94
"statements" : 100
95
95
}
96
96
}
97
+ },
98
+ "release" : {
99
+ "branches" : [
100
+ " main"
101
+ ]
102
+ },
103
+ "publishConfig" : {
104
+ "access" : " public"
97
105
}
98
106
}
You can’t perform that action at this time.
0 commit comments