diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 0000000..776758e --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -0,0 +1,29 @@ +name: Update Dependencies + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + packages: write + contents: write + actions: write + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.PACKAGE_DEPLOYER_PAT }} + - uses: actions/setup-node@v3 + with: + node-version: 17.0.0 + registry-url: https://npm.pkg.github.com/ + - run: | + git config --global user.name "Shummy1991" + git config --global user.email "shummy1991@gmail.com" + + - run: npm ci + - run: npm i @shummy1991/package-test@latest + - run: git push + env: + GH_TOKEN: ${{ github.token }} diff --git a/package-lock.json b/package-lock.json index 906d431..5b7752a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "package-usage", "version": "0.1.0", "dependencies": { + "@shummy1991/package-test": "^0.1.43", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -3327,6 +3328,25 @@ "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==" }, + "node_modules/@shummy1991/package-test": { + "version": "0.1.43", + "resolved": "https://npm.pkg.github.com/download/@shummy1991/package-test/0.1.43/cc2824668263c490bc3fcb4ea306cbb63ba99bae", + "integrity": "sha512-y1wZAQEL0LYmZI5AoYFNwx607ZbgaOc+RUoaOHuNfML30Fx4pwd4Ku1TUSYVJeWx5XUFTQDrjnZ4vKrqoFZ/LA==", + "dependencies": { + "@testing-library/jest-dom": "^5.17.0", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.55", + "@types/react": "^18.2.23", + "@types/react-dom": "^18.2.8", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "typescript": "^4.9.5", + "web-vitals": "^2.1.4" + } + }, "node_modules/@sinclair/typebox": { "version": "0.24.51", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", diff --git a/package.json b/package.json index e1cebaa..b5303fc 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { + "@shummy1991/package-test": "^0.1.43", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", diff --git a/src/App.tsx b/src/App.tsx index a53698a..5429593 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,12 +1,14 @@ import React from 'react'; import logo from './logo.svg'; import './App.css'; +import { Example } from '@shummy1991/package-test'; function App() { return (
logo +

Edit src/App.tsx and save to reload.