chore(deps): bump rexml from 3.3.7 to 3.3.9 in /docs (#916) #903
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
name: CI | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: npm install | |
- name: Lint code | |
run: npm run lint | |
- name: Format code | |
run: npm run format | |
- name: Build code | |
run: npm run build | |
- name: Test code | |
run: npm run test | |
publish: | |
runs-on: ubuntu-latest | |
needs: [test] | |
if: "${{ github.repository_owner == 'acss-io' && github.event_name == 'push' }}" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Build code | |
run: npm run build | |
- name: Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: npm run version | |
publish: npm run publish | |
commit: '[ci] publish' | |
title: '[ci] publish' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish VSCode extension | |
continue-on-error: true | |
run: | | |
npm run package -w atomic-css-snippets | |
npm run deploy -w atomic-css-snippets | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |