From 578d929fdb2853fb3a4c7fe97cc50f6f29b9ec27 Mon Sep 17 00:00:00 2001 From: Antonio Pena Date: Sun, 23 Oct 2022 18:44:30 +0200 Subject: [PATCH] fix: removed some github workflows --- .github/workflows/changelog.yml | 2 -- .github/workflows/eslint.yml | 50 --------------------------- .github/workflows/npm-publish.yml | 33 ------------------ .github/workflows/release-package.yml | 30 ---------------- package.json | 2 +- 5 files changed, 1 insertion(+), 116 deletions(-) delete mode 100644 .github/workflows/changelog.yml delete mode 100644 .github/workflows/eslint.yml delete mode 100644 .github/workflows/npm-publish.yml delete mode 100644 .github/workflows/release-package.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index fde0b1c..0000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,2 +0,0 @@ -- name: Changelog CI - uses: saadmk11/changelog-ci@v1.1.0 diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml deleted file mode 100644 index 847eb52..0000000 --- a/.github/workflows/eslint.yml +++ /dev/null @@ -1,50 +0,0 @@ -# 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. -# ESLint is a tool for identifying and reporting on patterns -# found in ECMAScript/JavaScript code. -# More details at https://github.com/eslint/eslint -# and https://eslint.org - -name: ESLint - -on: - push: - branches: [ "master" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "master" ] - schedule: - - cron: '24 18 * * 6' - -jobs: - eslint: - name: Run eslint scanning - runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: | - npm install eslint@8.10.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 - - - name: Run ESLint - run: npx eslint . - --config .eslintrc.js - --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100644 index 9fb25a5..0000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -# 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 - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm ci - - run: npm test - - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: 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 diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml deleted file mode 100644 index a8f5995..0000000 --- a/.github/workflows/release-package.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Node.js Package - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: npm ci - - run: npm test - - publish-gpr: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://npm.pkg.github.com/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package.json b/package.json index 85a91d8..7b2ca37 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Collections of react hooks to handle the Dymo LabelWriter web service.", "author": "apenab", "license": "MIT", - "repository": "apenab/react-dymo-hooks", + "repository": "apenab/react-dymo", "main": "dist/index.js", "module": "dist/index.modern.js", "source": "src/index.js",