refactor: update README structure and revert version number to 0.0.1 … #3
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Validate extension | |
| run: npm test | |
| - name: Build release archive | |
| run: | | |
| VERSION=$(node -p "require('./manifest.json').version") | |
| mkdir -p dist | |
| zip -r "dist/zcloudpass-extension-${VERSION}.zip" \ | |
| manifest.json \ | |
| background.js \ | |
| content.js \ | |
| content.css \ | |
| popup.html \ | |
| popup.css \ | |
| popup.js \ | |
| README.md \ | |
| icons | |
| - name: Upload archive artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extension-package | |
| path: dist/*.zip |