Skip to content

Commit

Permalink
DO NOT MERGE: publish package on NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jun 27, 2024
1 parent 85badd4 commit 1eb1040
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -42,9 +43,31 @@ jobs:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm clean-install
- run: npm run build
- run: npm run build:standalone
- name: Store build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: dist/netzgrafik-frontend/

publish:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build
path: dist/netzgrafik-frontend/
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- run: npm version --no-git-tag-version "0.0.0-snapshot.$GITHUB_SHA"
- run: npm pkg delete dependencies optionalDependencies devDependencies
- run: npm publish --provenance --access public --tag snapshot
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
"generate:api": "openapi-generator-cli generate",
"local-test": "ng test --watch --code-coverage"
},
"name": "netzgrafik-frontend",
"name": "@osrd-project/netzgrafik-frontend",
"version": "2.5.0",
"repository": {
"type": "git",
"url": "https://github.com/osrd-project/netzgrafik-editor-frontend.git"
},
"files": [
"dist/*"
],
Expand Down

0 comments on commit 1eb1040

Please sign in to comment.