File tree 3 files changed +32
-11
lines changed
3 files changed +32
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : Continuous Integration
2
- on :
3
- push :
4
- branches :
5
- - main
6
- pull_request :
7
- branches :
8
- - main
2
+ on : [push]
9
3
10
4
concurrency :
11
5
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -17,6 +11,7 @@ permissions:
17
11
jobs :
18
12
lint :
19
13
runs-on : ubuntu-latest
14
+ continue-on-error : true
20
15
steps :
21
16
- uses : actions/checkout@v4
22
17
- uses : actions/setup-node@v4
48
43
node-version-file : ' .nvmrc'
49
44
cache : ' npm'
50
45
- run : npm clean-install
51
- - run : npm run build
46
+ - run : npm run build:standalone
52
47
- name : Store build artifacts
53
48
uses : actions/upload-artifact@v4
54
49
with :
55
50
name : build
56
51
path : dist/netzgrafik-frontend/
52
+
53
+ publish :
54
+ runs-on : ubuntu-latest
55
+ needs : build
56
+ permissions :
57
+ contents : read
58
+ id-token : write
59
+ steps :
60
+ - uses : actions/checkout@v4
61
+ - name : Download build artifacts
62
+ uses : actions/download-artifact@v4
63
+ with :
64
+ name : build
65
+ path : dist/netzgrafik-frontend/
66
+ - uses : actions/setup-node@v4
67
+ with :
68
+ registry-url : ' https://registry.npmjs.org'
69
+ - run : npm version --no-git-tag-version "0.0.0-snapshot.$GITHUB_SHA"
70
+ - run : npm pkg delete dependencies optionalDependencies devDependencies
71
+ - run : npm publish --provenance --access public --tag snapshot
72
+ env :
73
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 15
15
"generate:api" : " openapi-generator-cli generate" ,
16
16
"local-test" : " ng test --watch --code-coverage"
17
17
},
18
- "name" : " netzgrafik-frontend" ,
18
+ "name" : " @osrd-project/ netzgrafik-frontend" ,
19
19
"version" : " 2.5.0" ,
20
+ "repository" : {
21
+ "type" : " git" ,
22
+ "url" : " https://github.com/osrd-project/netzgrafik-editor-frontend.git"
23
+ },
20
24
"files" : [
21
25
" dist/*"
22
26
],
You can’t perform that action at this time.
0 commit comments