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.
This commit is contained in:
parent
dafddb73c8
commit
891993e39b
@ -1,57 +1,57 @@
|
|||||||
name: Package Deployment
|
name: Package Deployment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
- master
|
- master
|
||||||
release: ~
|
release: ~
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy_github:
|
deploy_github:
|
||||||
name: GitHub Package Registry
|
name: GitHub Package Registry
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Use Node.js 8
|
- name: Use Node.js 8
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 8
|
node-version: 8
|
||||||
registry-url: https://npm.pkg.github.com/
|
registry-url: https://npm.pkg.github.com/
|
||||||
scope: '@select2'
|
scope: '@select2'
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Run linting, tests, minify
|
- name: Run linting, tests, minify
|
||||||
run: grunt
|
run: grunt
|
||||||
- name: Deploy (release)
|
- name: Deploy (release)
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: npm publish
|
run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
- name: Deploy (release candidate)
|
- name: Deploy (release candidate)
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
npm --no-git-tag-version version prerelease
|
npm --no-git-tag-version version prerelease
|
||||||
npm publish --tag next
|
npm publish --tag next
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
deploy_npm:
|
deploy_npm:
|
||||||
name: NPM
|
name: NPM
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Use Node.js 8
|
- name: Use Node.js 8
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 8
|
node-version: 8
|
||||||
registry-url: https://npm.pkg.github.com/
|
registry-url: https://npm.pkg.github.com/
|
||||||
scope: '@select2'
|
scope: '@select2'
|
||||||
- name: npm install
|
- name: npm install
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Run linting, tests, minify
|
- name: Run linting, tests, minify
|
||||||
run: grunt
|
run: grunt
|
||||||
- name: Deploy (release)
|
- name: Deploy (release)
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: npm publish
|
run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
Reference in New Issue
Block a user