File tree 2 files changed +19
-14
lines changed
2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 3
3
release :
4
4
types : [created]
5
5
jobs :
6
+ var :
7
+ name : Set variables
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Set variables
11
+ id : var
12
+ run : |
13
+ TAG="$(git describe --tags)" && echo "tag=${TAG#v}" >> $GITHUB_OUTPUT
14
+ outputs :
15
+ tag : ${{ steps.var.outputs.tag }}
6
16
build :
17
+ name : Build
18
+ needs : var
7
19
runs-on : ubuntu-latest
8
20
steps :
9
21
- uses : actions/checkout@v4
10
22
- uses : actions/setup-node@v4
11
23
with :
12
24
registry-url : ' https://npm.pkg.github.com'
13
25
scope : ' @mutablelogic'
14
- - run : npm install
15
- - run : npm run build
16
- - run : npm publish
26
+ - name : Publish
27
+ run : |
28
+ npm ci
29
+ npm version ${{ needs.var.outputs.tag }} --no-git-tag-version --allow-same-version
30
+ npm run build
31
+ npm publish
17
32
env :
18
33
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
- delete :
20
- needs : build
21
- runs-on : ubuntu-latest
22
- steps :
23
- - uses : actions/delete-package-versions@v5
24
- with :
25
- package-name : js-framework
26
- package-type : ' npm'
27
- num-old-versions-to-delete : 1
28
- min-versions-to-keep : 2
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mutablelogic/js-framework" ,
3
- "version" : " 0.0.49 " ,
3
+ "version" : " 0.0.0 " ,
4
4
"description" : " Javascript Framework" ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments