diff --git a/.github/workflows/check_version.yml b/.github/workflows/check_version.yml new file mode 100644 index 0000000..c9f8a25 --- /dev/null +++ b/.github/workflows/check_version.yml @@ -0,0 +1,16 @@ +on: push +name: Check package version +jobs: + checkVersion: + name: Check package version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 3 + - name: Check package version + uses: technote-space/ga-package-version-checker@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TEST_TAG_PREFIX: test/ + BRANCH_PREFIX: release/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d867b0..95f44df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,62 @@ on: name: Release jobs: + release: + name: Publish Package + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 3 + - name: Check package version + uses: technote-space/ga-package-version-checker@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install Package dependencies + run: yarn install + - name: Test + run: yarn test + - name: Build + run: yarn build + - name: Publish + uses: actions/npm@master + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + with: + args: publish + - uses: 8398a7/action-slack@v1 + with: + type: failure + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: failure() + + pages: + name: Publish GitHub Pages + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 3 + - name: Build + run: | + git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci + bash travis-ci/bin/deploy/gh-pages.sh + env: + CI: 1 + TRAVIS_BUILD_DIR: ${{ github.workspace }} + GH_PAGES_TITLE: jQuery Marker Animation + GH_PAGES_TRACKING_ID: UA-78163306-3 + - name: Deploy + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: gh-pages + releases: name: Upload build files runs-on: ubuntu-latest diff --git a/package.json b/package.json index 418698c..2528dc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery.marker-animation", - "version": "1.3.18", + "version": "1.4.0", "description": "Marker animation jQuery plugin", "main": "jquery.marker-animation.min.js", "scripts": {