1.3.0 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Deploy | |
on: | |
release: | |
types: [published] | |
jobs: | |
vsce: | |
name: VS Code Marketplace | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
environment: | |
name: VS Code Marketplace | |
url: https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_TOKEN }} | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- name: clean install dependencies | |
run: npm ci | |
- name: deploy | |
run: npm run deploy-vsce | |
openvsx: | |
name: Open VSX | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
environment: | |
name: Open VSX Registry | |
url: https://open-vsx.org/extension/johnbillion/vscode-wordpress-hooks | |
env: | |
OVSX_PAT: ${{ secrets.OVSX_TOKEN }} | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- name: clean install dependencies | |
run: npm ci | |
- name: deploy | |
run: npm run deploy-openvsx | |
github: | |
name: GitHub Milestones | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Get next versions | |
id: semvers | |
uses: WyriHaximus/[email protected] | |
with: | |
version: ${{ github.event.release.tag_name }} | |
- name: Create next patch milestone | |
uses: octokit/[email protected] | |
with: | |
route: POST /repos/:repository/milestones | |
repository: ${{ github.repository }} | |
title: ${{ steps.semvers.outputs.patch }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: true | |
- name: Create next minor milestone | |
uses: octokit/[email protected] | |
with: | |
route: POST /repos/:repository/milestones | |
repository: ${{ github.repository }} | |
title: ${{ steps.semvers.outputs.minor }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: true | |
- name: Create next major milestone | |
uses: octokit/[email protected] | |
with: | |
route: POST /repos/:repository/milestones | |
repository: ${{ github.repository }} | |
title: ${{ steps.semvers.outputs.major }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: true |