-
Notifications
You must be signed in to change notification settings - Fork 309
51 lines (48 loc) · 1.47 KB
/
release-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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@v4
- 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 "json=$content" >> $GITHUB_OUTPUT
- 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@v4
- 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