release: 1.0.0 (#1) #1
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
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| name: Publish extension | |
| jobs: | |
| publish-extension: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_ENV | |
| id: nvmrc | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "${{ env.nvmrc }}" | |
| cache: npm | |
| - run: npm ci | |
| - env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
| run: | | |
| npm run publish | |
| npm run ovsx-publish | |
| # - name: Setup tmate session | |
| # if: ${{ always() }} | |
| # timeout-minutes: 30 # Run `sudo shutdown -h now` to terminate the session | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # uses: mxschmitt/action-tmate@v3 |