Merge pull request #9 from Mojang/frgarc/enable-publish #5
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: releaseVSCode | |
| on: | |
| push: | |
| branches: [mojang/main] | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: npm run install:all | |
| working-directory: ./FASTBuildMonitorVSCode | |
| - run: npm run build:all | |
| working-directory: ./FASTBuildMonitorVSCode | |
| # Log into Azure CLI to get VSCE credentials | |
| - name: Azure login | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - run: npm run release | |
| working-directory: ./FASTBuildMonitorVSCode | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| VSCE_AZURE_CREDENTIAL: true |