File tree 5 files changed +25
-6
lines changed
5 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,32 @@ jobs:
82
82
token : ${{ secrets.DJS_DOCS }}
83
83
path : ' out'
84
84
85
+ - name : ' Extract package from tag'
86
+ if : env.BRANCH_OR_TAG == 'tag'
87
+ id : package-name
88
+
89
+ with :
90
+ pattern : ' (^@.*\\/(?<package>.*)@v?)?(?<semver>\d+.\d+.\d+)-?.*'
91
+ string : ${{ env.BRANCH_NAME }}
92
+ replace-with : ' $<package>'
93
+
94
+ - name : ' Extract semver from tag'
95
+ if : env.BRANCH_OR_TAG == 'tag'
96
+ id : semver
97
+
98
+ with :
99
+ pattern : ' (^@.*\\/(?<package>.*)@v?)?(?<semver>\d+.\d+.\d+)-?.*'
100
+ string : ${{ env.BRANCH_NAME }}
101
+ replace-with : ' $<semver>'
102
+
85
103
- name : Move docs to correct directory
86
104
if : env.BRANCH_OR_TAG == 'tag'
87
105
env :
88
- PACKAGE : ${{ matrix.package }}
106
+ PACKAGE : ${{ steps.package-name.outputs.replaced }}
107
+ SEMVER : ${{ steps.semver.outputs.replaced }}
89
108
run : |
90
109
mkdir -p out/${PACKAGE}
91
- mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/$(jq --raw-output '.version' packages/${PACKAGE}/package.json) .json
110
+ mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/${SEMVER} .json
92
111
93
112
- name : Move docs to correct directory
94
113
if : env.BRANCH_OR_TAG == 'branch'
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @discordjs/builders" ,
3
- "version" : " 0.13.0 " ,
3
+ "version" : " 0.14.0-dev " ,
4
4
"description" : " A set of builders that you can use when creating your bot" ,
5
5
"scripts" : {
6
6
"build" : " tsup" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @discordjs/collection" ,
3
- "version" : " 0.6.0 " ,
3
+ "version" : " 0.7.0-dev " ,
4
4
"description" : " Utility data structure used in discord.js" ,
5
5
"scripts" : {
6
6
"test" : " jest --pass-with-no-tests" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @discordjs/rest" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.5.0-dev " ,
4
4
"description" : " The REST API for discord.js" ,
5
5
"scripts" : {
6
6
"build" : " tsup && tsc --emitDeclarationOnly --incremental" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @discordjs/voice" ,
3
- "version" : " 0.9.0 " ,
3
+ "version" : " 0.10.0-dev " ,
4
4
"description" : " Implementation of the Discord Voice API for node.js" ,
5
5
"scripts" : {
6
6
"build" : " tsup && node scripts/postbuild.mjs" ,
You can’t perform that action at this time.
0 commit comments