This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
Unsubscribe instead of subscribe (#3756) #5
This file contains 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 dev release line | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
dev_release: | |
runs-on: ubuntu-latest | |
environment: npm | |
permissions: | |
id-token: write | |
contents: write | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn install | |
- id: pkg | |
run: | | |
content=`cat ./package.json | tr '\n' ' '` | |
echo "::set-output name=json::$content" | |
- run: npm version --no-git-tag-version ${{ fromJson(steps.pkg.outputs.json).version }}-$(git rev-parse --short HEAD)+${{ github.run_id }}.${{ github.run_attempt }} | |
- run: npm publish --tag dev --provenance | |
- run: | | |
git tag --force dev | |
git push origin :refs/tags/dev | |
git push origin --tags | |
injection-image-publish: | |
runs-on: ubuntu-latest | |
needs: ['dev_release'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: npm pack for injection image | |
run: | | |
npm pack dd-trace@dev | |
- uses: ./.github/actions/injection | |
with: | |
init-image-version: dev |