Skip to content

Commit

Permalink
Merge branch 'develop' into chore/publishVersion_0_1_0
Browse files Browse the repository at this point in the history
  • Loading branch information
capyq authored Dec 16, 2024
2 parents 47093ee + 9c984b2 commit de4f54e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package react

on:
push:
branches:
- main
- 'releases/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- working-directory: packages/rte-design-system-react
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- working-directory: packages/rte-design-system-react
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion packages/rte-design-system-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": false,
"author": "Rte <[quentin.capy@rte-france.com](mailto:quentin.capy@rte-france.com)>",
"license": "MPL-2.0",
"version": "0.0.0",
"version": "0.1.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/main.d.ts",
Expand Down

0 comments on commit de4f54e

Please sign in to comment.