chore: release v0.0.19 #20
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: lts/* | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| - name: Build Extension | |
| run: | | |
| pnpm install | |
| pnpm build | |
| - name: Build Go WS Server | |
| working-directory: ./src/sync/ws/go | |
| run: | | |
| chmod +x build.sh | |
| ./build.sh | |
| - run: npm i -g npm@latest | |
| - run: pnpm i | |
| - name: Publish to VSCE | |
| run: pnpx @vscode/vsce publish --no-dependencies -p ${{secrets.VSCE_TOKEN}} | |
| - name: Publish to OVSX | |
| run: pnpx ovsx publish --no-dependencies -p ${{secrets.OVSX_TOKEN}} | |
| - name: Publish to NPM | |
| working-directory: ./src/sync/ws/ | |
| run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build the Docker image | |
| run: docker build . --file Dockerfile --tag ghcr.io/kermanx/p2p-live-share-ws-server:latest | |
| working-directory: ./src/sync/ws/go | |
| - name: Push Docker image to GHCR | |
| run: docker push ghcr.io/kermanx/p2p-live-share-ws-server:latest | |
| working-directory: ./src/sync/ws/go | |
| - name: Create GitHub Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: ./src/sync/ws/go/ws-server, ./src/sync/ws/go/serverless.zip | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| tag: ${{ github.ref_name }} | |
| name: Release ${{ github.ref_name }} |