From 9963de8feeb8d4fc98adea7b56d8682492769c87 Mon Sep 17 00:00:00 2001 From: capyq <60133108+capyq@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:18:04 +0100 Subject: [PATCH 1/2] Create npm-publish-github-packages.yml --- .../workflows/npm-publish-github-packages.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/npm-publish-github-packages.yml diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml new file mode 100644 index 0000000..097d6e0 --- /dev/null +++ b/.github/workflows/npm-publish-github-packages.yml @@ -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}} From 9c984b261a58064d6472cefa719880f4e6ef1556 Mon Sep 17 00:00:00 2001 From: capyq <60133108+capyq@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:20:03 +0100 Subject: [PATCH 2/2] Update version --- packages/rte-design-system-react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rte-design-system-react/package.json b/packages/rte-design-system-react/package.json index 02476c5..a4a6e25 100644 --- a/packages/rte-design-system-react/package.json +++ b/packages/rte-design-system-react/package.json @@ -1,7 +1,7 @@ { "name": "rte-design-system-react", "private": true, - "version": "0.0.0", + "version": "0.1.0", "type": "module", "main": "dist/index.js", "types": "dist/main.d.ts",