From cd001adf1b89279d2e9c930bf1ef5fce783fa5a3 Mon Sep 17 00:00:00 2001 From: Samuel Aaron Katz Keer Date: Mon, 1 Apr 2024 10:58:35 -0500 Subject: [PATCH] looks ready to test with live creds --- .github/workflows/test-and-deploy.yml | 32 +++++++++++++++++++++++++++ .travis.yml | 28 ----------------------- README.md | 3 --- 3 files changed, 32 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/test-and-deploy.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml new file mode 100644 index 00000000..e0ae2b52 --- /dev/null +++ b/.github/workflows/test-and-deploy.yml @@ -0,0 +1,32 @@ +name: Test and Deploy + +on: push + +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + registry-url: 'https://registry.npmjs.org' + with: + node-version: 16 + - run: npm install + - run: npm run build + - run: npm test + deploy: + needs: [run-tests] + runs-on: ubuntu-latest + if: ${{ github.ref_name == 'master' }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + registry-url: 'https://registry.npmjs.org' + with: + node-version: 16 + - run: npm install + - run: npm run build + - run: npx semantic-release + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ae2d38af..00000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: node_js -node_js: - - '16' -install: - - npm install -before_script: - - npm run build -script: - - npm test -before_deploy: - - npm install - - npm run build -deploy: - - provider: npm - email: $NPM_EMAIL - api_key: $NPM_TOKEN - on: - repo: revelrylabs/harmonium - tags: true - node: '16' - skip_cleanup: true - - provider: script - skip_cleanup: true - script: - - npx semantic-release - on: - repo: revelrylabs/harmonium - node: '16' diff --git a/README.md b/README.md index 112fe297..bf747d84 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ [![NPM Version][npm-badge]][npm-url] -[![Travis Build Status][travis-badge]][travis-url] [![Dependency Status](https://dependencyci.com/github/revelrylabs/harmonium/badge)](https://dependencyci.com/github/revelrylabs/harmonium) [![Coverage Status](https://opencov.prod.revelry.net/projects/8/badge.svg)](https://opencov.prod.revelry.net/projects/8) @@ -189,8 +188,6 @@ adhere to the Contributor Covenant Code of Conduct (see [CODE_OF_CONDUCT.md](htt [npm-badge]: https://img.shields.io/npm/v/harmonium.svg [npm-url]: https://www.npmjs.com/package/harmonium -[travis-badge]: https://img.shields.io/travis/revelrylabs/harmonium.svg -[travis-url]: https://travis-ci.org/revelrylabs/harmonium ## License