chore: switch to legacy version of theme generator #8
This file contains hidden or 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: Publish | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| minify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: check out the repository | |
| uses: actions/checkout@v4 | |
| - name: auto minify the files | |
| uses: nizarmah/auto-minify@v3 | |
| with: | |
| directory: ./src | |
| output: ./dist | |
| css_engine: lightning | |
| - name: auto commit the minified files | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "bot: Add auto minified files" | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: npm install -g npm | |
| - run: npm publish --provenance --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM }} |