Skip to content

Commit

Permalink
chore: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBonnet committed Jun 4, 2024
1 parent b605b11 commit 2755d53
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/npm-published.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Empty file added .github/workflows/release.yaml
Empty file.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<br />

<h1>XTerm.js for React</h1>

<p>
Expand All @@ -19,7 +17,6 @@ Yarn:

yarn add react-xtermjs


<br />
<hr />

Expand Down
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}

0 comments on commit 2755d53

Please sign in to comment.