version 3.0.7: add mobile view dropdown, improve toolbar layout, fix … #12
Workflow file for this run
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 to NPM | |
| on: | |
| push: | |
| tags: | |
| - 'live' # Triggers only on the 'live' tag | |
| workflow_dispatch: # Add this to enable manual triggers | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required for creating releases | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: npm ci --include=dev | |
| - name: Build project | |
| run: npm run build | |
| - name: Verify package files | |
| run: | | |
| echo "Package name: $(node -p "require('./package.json').name")" | |
| echo "Package version: $(node -p "require('./package.json').version")" | |
| echo "Verifying required files exist:" | |
| ls -la dist/simple-calendar-js.min.js | |
| ls -la dist/simple-calendar-js.min.css | |
| ls -la LICENSE | |
| ls -la README.md | |
| - name: Publish to NPM | |
| run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: Release ${{ github.ref_name }} | |
| body: | | |
| SimpleCalendarJs Release ${{ github.ref_name }} | |
| ## What's Changed | |
| - Updated to version ${{ github.ref_name }} | |
| ## Installation | |
| ```bash | |
| npm install simple-calendar-js | |
| ``` | |
| draft: false | |
| prerelease: false |