Skip to content

Update with latest themes and publish to marketplace #32

Update with latest themes and publish to marketplace

Update with latest themes and publish to marketplace #32

Workflow file for this run

name: Update with latest themes and publish to marketplace
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # https://crontab.guru/every-week
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Fetch the repository code
uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: Update schemes
uses: tinted-theming/base16-builder-go@latest
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: |
yarn install
- name: Lint
run: |
yarn lint
- name: Update package.json themes
run: |
yarn update:packagejson:themes
- name: Version bump
run: |
yarn update:packagejson:version
- name: Commit the changes, if any
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update with the latest colorschemes
branch: ${{ github.head_ref }}
commit_user_name: tinted-theming-bot
commit_user_email: [email protected]
commit_author: tinted-theming-bot <[email protected]>
- name: Publish to VSCode Marketplace
uses: lannonbr/[email protected]
if: steps.auto-commit-action.outputs.changes_detected == 'true'
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}