Skip to content

Commit 4d79643

Browse files
committed
DO NOT MERGE: publish package on NPM
1 parent df335ef commit 4d79643

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
name: Continuous Integration
2-
on:
3-
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
2+
on: [push]
93

104
concurrency:
115
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -17,6 +11,7 @@ permissions:
1711
jobs:
1812
lint:
1913
runs-on: ubuntu-latest
14+
continue-on-error: true
2015
steps:
2116
- uses: actions/checkout@v4
2217
- uses: actions/setup-node@v4
@@ -71,3 +66,25 @@ jobs:
7166
with:
7267
name: build-standalone
7368
path: dist/netzgrafik-frontend/
69+
70+
publish:
71+
runs-on: ubuntu-latest
72+
needs: build-standalone
73+
permissions:
74+
contents: read
75+
id-token: write
76+
steps:
77+
- uses: actions/checkout@v4
78+
- name: Download build artifacts
79+
uses: actions/download-artifact@v4
80+
with:
81+
name: build-standalone
82+
path: dist/netzgrafik-frontend/
83+
- uses: actions/setup-node@v4
84+
with:
85+
registry-url: 'https://registry.npmjs.org'
86+
- run: npm version --no-git-tag-version "0.0.0-snapshot.$GITHUB_SHA"
87+
- run: npm pkg delete dependencies optionalDependencies devDependencies
88+
- run: npm publish --provenance --access public --tag snapshot
89+
env:
90+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"local-test": "ng test --watch --code-coverage",
1616
"extract-i18n": "ng extract-i18n"
1717
},
18-
"name": "netzgrafik-frontend",
18+
"name": "@osrd-project/netzgrafik-frontend",
1919
"version": "2.7.2",
2020
"repository": {
2121
"type": "git",
22-
"url": "https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-frontend.git"
22+
"url": "https://github.com/osrd-project/netzgrafik-editor-frontend.git"
2323
},
2424
"files": [
2525
"dist/*"

0 commit comments

Comments
 (0)