File tree Expand file tree Collapse file tree 2 files changed +38
-27
lines changed Expand file tree Collapse file tree 2 files changed +38
-27
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
1
name : Publish to NPM
5
2
6
- # on:
7
- # release:
8
- # types: [created]
9
-
10
3
on :
11
4
push :
12
- # branches: [master]
13
5
tags :
14
6
- ' *'
15
7
16
8
jobs :
17
9
build :
18
10
runs-on : ubuntu-latest
19
11
steps :
20
- - uses : actions/checkout@v4
21
- - run : corepack enable
22
- - uses : actions/setup-node@v4
23
- with :
24
- node-version : 22
25
- - run : yarn
26
- - run : yarn test
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Enable Corepack
16
+ run : corepack enable
17
+
18
+ - name : Set up Node.js
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : 22
22
+ cache : ' yarn'
23
+
24
+ - name : Install dependencies
25
+ run : yarn
26
+
27
+ - name : Run tests
28
+ run : yarn test
27
29
28
30
publish-npm :
29
31
needs : build
30
32
runs-on : ubuntu-latest
31
33
steps :
32
- - uses : actions/checkout@v4
33
- - run : corepack enable
34
- - uses : actions/setup-node@v4
35
- with :
36
- node-version : 22
37
- cache : ' yarn'
38
- registry-url : https://registry.npmjs.org/
39
- - run : yarn workspaces focus --all --production
40
- - run : npm publish
41
- env :
42
- NODE_AUTH_TOKEN : ${{secrets.NPM_AUTH_TOKEN}}
34
+ - name : Checkout code
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Enable Corepack
38
+ run : corepack enable
39
+
40
+ - name : Set up Node.js
41
+ uses : actions/setup-node@v4
42
+ with :
43
+ node-version : 22
44
+ cache : ' yarn'
45
+ registry-url : https://registry.npmjs.org/
46
+
47
+ - name : Install production dependencies
48
+ run : yarn workspaces focus --all --production
49
+
50
+ - name : Publish package
51
+ run : npm publish
52
+ env :
53
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " svelte-marked" ,
3
3
"description" : " A markdown renderer for Svelte." ,
4
- "version" : " 0.5.3 " ,
4
+ "version" : " 0.5.4 " ,
5
5
"packageManager" :
" [email protected] " ,
6
6
"engines" : {
7
7
"node" : " >=18"
You can’t perform that action at this time.
0 commit comments