From 891993e39bfbe50e1550d59fcc6f5cae29b0648c Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Wed, 11 Sep 2019 21:22:02 -0400 Subject: [PATCH] Renamed deploy.yml to package-deploy.yml Eventually we are going to want to do documentation deployments so it makes sense to split them up. --- .../{deploy.yml => package-deploy.yml} | 114 +++++++++--------- 1 file changed, 57 insertions(+), 57 deletions(-) rename .github/workflows/{deploy.yml => package-deploy.yml} (96%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/package-deploy.yml similarity index 96% rename from .github/workflows/deploy.yml rename to .github/workflows/package-deploy.yml index 23cbc335..63e51241 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/package-deploy.yml @@ -1,57 +1,57 @@ -name: Package Deployment - -on: - push: - branches: - - develop - - master - release: ~ - -jobs: - deploy_github: - name: GitHub Package Registry - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Use Node.js 8 - uses: actions/setup-node@v1 - with: - node-version: 8 - registry-url: https://npm.pkg.github.com/ - scope: '@select2' - - name: npm install - run: npm install - - name: Run linting, tests, minify - run: grunt - - name: Deploy (release) - if: github.event_name == 'release' - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Deploy (release candidate) - if: github.event_name == 'push' - run: | - npm --no-git-tag-version version prerelease - npm publish --tag next - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - deploy_npm: - name: NPM - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Use Node.js 8 - uses: actions/setup-node@v1 - with: - node-version: 8 - registry-url: https://npm.pkg.github.com/ - scope: '@select2' - - name: npm install - run: npm install - - name: Run linting, tests, minify - run: grunt - - name: Deploy (release) - if: github.event_name == 'release' - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} +name: Package Deployment + +on: + push: + branches: + - develop + - master + release: ~ + +jobs: + deploy_github: + name: GitHub Package Registry + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Use Node.js 8 + uses: actions/setup-node@v1 + with: + node-version: 8 + registry-url: https://npm.pkg.github.com/ + scope: '@select2' + - name: npm install + run: npm install + - name: Run linting, tests, minify + run: grunt + - name: Deploy (release) + if: github.event_name == 'release' + run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Deploy (release candidate) + if: github.event_name == 'push' + run: | + npm --no-git-tag-version version prerelease + npm publish --tag next + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + deploy_npm: + name: NPM + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Use Node.js 8 + uses: actions/setup-node@v1 + with: + node-version: 8 + registry-url: https://npm.pkg.github.com/ + scope: '@select2' + - name: npm install + run: npm install + - name: Run linting, tests, minify + run: grunt + - name: Deploy (release) + if: github.event_name == 'release' + run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}