1
0
mirror of synced 2024-11-25 06:16:08 +03:00

Merge pull request #5639 from select2/github-actions-updates

GitHub Actions updates
This commit is contained in:
Kevin Brown 2019-09-11 23:53:51 -04:00 committed by GitHub
commit 233424da2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 32 deletions

View File

@ -8,33 +8,33 @@ on:
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

View File

@ -1,6 +1,6 @@
Select2 Select2
======= =======
[![Build Status][travis-ci-image]][travis-ci-status] ![Build Status][github-actions-image]
[![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)][cdnjs] [![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)][cdnjs]
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/select2/badge)][jsdelivr] [![jsdelivr](https://data.jsdelivr.com/v1/package/npm/select2/badge)][jsdelivr]
@ -77,7 +77,8 @@ make a pull request back to Select2 here on GitHub.
Documentation Documentation
------------- -------------
The documentation for Select2 is available The documentation for Select2 is available
[through GitHub Pages][documentation] and is located within the [separate `select2/docs` repository][documentation-repository]. [online at the documentation website][documentation] and is located within the
[`docs` directory of this repository][documentation-directory].
Community Community
--------- ---------
@ -91,13 +92,12 @@ The license is available within the repository in the [LICENSE][license] file.
[cdnjs]: http://www.cdnjs.com/libraries/select2 [cdnjs]: http://www.cdnjs.com/libraries/select2
[community]: https://select2.org/getting-help [community]: https://select2.org/getting-help
[documentation]: https://select2.org [documentation]: https://select2.org
[documentation-repository]: https://github.com/select2/docs [documentation-directory]: https://github.com/select2/select2/tree/develop/docs
[freenode]: https://freenode.net/ [freenode]: https://freenode.net/
[github-actions-image]: https://github.com/select2/select2/workflows/CI/badge.svg
[jsdelivr]: https://www.jsdelivr.com/package/npm/select2 [jsdelivr]: https://www.jsdelivr.com/package/npm/select2
[license]: LICENSE.md [license]: LICENSE.md
[releases]: https://github.com/select2/select2/releases [releases]: https://github.com/select2/select2/releases
[travis-ci-image]: https://img.shields.io/travis/select2/select2/master.svg
[travis-ci-status]: https://travis-ci.org/select2/select2
[angularjs]: https://angularjs.org/ [angularjs]: https://angularjs.org/
[bootstrap3]: https://getbootstrap.com/ [bootstrap3]: https://getbootstrap.com/