From 2755d53f31a5df6d5b724fdf7bf0c7e1f4e25c6f Mon Sep 17 00:00:00 2001 From: Remi Bonnet Date: Tue, 4 Jun 2024 11:44:19 +0200 Subject: [PATCH] chore: github actions --- .github/workflows/npm-published.yaml | 32 ++++++++++++++++++++++++++++ .github/workflows/release.yaml | 0 README.md | 3 --- package.json | 15 ++++++++++--- 4 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/npm-published.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/npm-published.yaml b/.github/workflows/npm-published.yaml new file mode 100644 index 0000000..0aa7f15 --- /dev/null +++ b/.github/workflows/npm-published.yaml @@ -0,0 +1,32 @@ +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload NPM Package + +on: + workflow_run: + workflows: ['Tagging'] + types: + - completed + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - name: Install dependencies + run: npm ci + - name: Publish package + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index e70f4af..6a89ae5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -
-

XTerm.js for React

@@ -19,7 +17,6 @@ Yarn: yarn add react-xtermjs -


diff --git a/package.json b/package.json index aa1def1..9b8a33f 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "react-xtermjs", - "version": "1.0.0", + "version": "0.0.0-development", "main": "index.js", "scripts": { "build": "rollup -c", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "semantic-release": "semantic-release" }, "author": "@RemiBonnet @ctjhoa", "license": "ISC", @@ -21,9 +22,17 @@ "rollup": "^4.17.2", "rollup-plugin-import-css": "^3.5.0", "tslib": "^2.6.2", - "typescript": "^5.4.5" + "typescript": "^5.4.5", + "semantic-release": "^24.0.0" }, "jest": { "testEnvironment": "jsdom" + }, + "repository": { + "type": "git", + "url": "https://github.com/Qovery/react-xtermjs.git" + }, + "publishConfig": { + "access": "restricted" } }