name: Build and Release on: push: tags: - 'v*' jobs: # NPM Registry Release release: # Use Ubuntu 22.04 runs-on: ubuntu-22.04 steps: # Step I - name: Get Source Code uses: actions/checkout@v3 with: fetch-depth: 0 # Step II - name: Install Dependencies run: npm ci # Step III - name: Build Project run: npm run build # Step IV - name: Publish to NPM Registry uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }} # Step V - name: Generate Changelog run: npx changelogithub@0.12 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}