From da599fe8460a6d114376a44310bd65345c6c6b30 Mon Sep 17 00:00:00 2001 From: dsrkafuu Date: Fri, 7 Jan 2022 19:06:33 +0800 Subject: [PATCH] build: remove publish action --- .github/workflows/build-test.yml | 17 ++++++++++++++++ .github/workflows/npm-beta.yml | 22 --------------------- .github/workflows/npm-publish.yml | 33 ------------------------------- README.md | 9 +++++---- 4 files changed, 22 insertions(+), 59 deletions(-) create mode 100644 .github/workflows/build-test.yml delete mode 100644 .github/workflows/npm-beta.yml delete mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..6fcf134 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,17 @@ +name: build-test + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + - run: npm install + - run: npm run build diff --git a/.github/workflows/npm-beta.yml b/.github/workflows/npm-beta.yml deleted file mode 100644 index 5e2da6c..0000000 --- a/.github/workflows/npm-beta.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: npm-beta - -on: - release: - types: - - published - -jobs: - publish-beta: - if: 'github.event.release.prerelease' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm run build - - run: npm publish --tag beta - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100644 index 56e726b..0000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: npm-publish - -on: - release: - types: - - published - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14' - - run: npm install - - run: npm run build - - publish-npm: - if: '!github.event.release.prerelease' - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm run build - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index dcf3ecb..76d5b7c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # 🗡 ffxiv-overlay-api 🛡 -![BADGE](https://img.shields.io/github/workflow/status/dsrkafuu/ffxiv-overlay-api/npm-publish) -![BADGE](https://img.shields.io/npm/v/ffxiv-overlay-api) -![BADGE](https://img.shields.io/npm/dm/ffxiv-overlay-api) -![BADGE](https://img.shields.io/npm/l/ffxiv-overlay-api) +![](https://img.shields.io/github/workflow/status/dsrkafuu/ffxiv-overlay-api/build-test) +![](https://img.shields.io/npm/v/ffxiv-overlay-api) +![](https://img.shields.io/npm/dm/ffxiv-overlay-api) +[![](https://img.shields.io/npm/l/ffxiv-overlay-api)](https://github.com/dsrkafuu/ffxiv-overlay-api/blob/master/LICENSE) +[![](https://img.shields.io/lgtm/grade/javascript/github/dsrkafuu/ffxiv-overlay-api)](https://lgtm.com/projects/g/dsrkafuu/ffxiv-overlay-api/context:javascript) Build your own modern FFXIV overlay with npm & TypeScript support.