File tree Expand file tree Collapse file tree 4 files changed +10
-61
lines changed Expand file tree Collapse file tree 4 files changed +10
-61
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 24
24
steps :
25
25
- uses : actions/checkout@v4
26
26
27
- - uses : elastic/apm-pipeline-library/.github/actions/setup-npmrc@current
28
- with :
29
- secret : secret/jenkins-ci/npmjs/elasticmachine
30
- vault-url : ${{ secrets.VAULT_ADDR }}
31
- vault-role-id : ${{ secrets.VAULT_ROLE_ID }}
32
- vault-secret-id : ${{ secrets.VAULT_SECRET_ID }}
33
-
34
- - uses : ./.github/actions/setup-totp
35
- with :
36
- vault-url : ${{ secrets.VAULT_ADDR }}
37
- vault-role-id : ${{ secrets.VAULT_ROLE_ID }}
38
- vault-secret-id : ${{ secrets.VAULT_SECRET_ID }}
39
-
40
27
- name : Validate version input is a valid semver
41
28
run : |
42
29
if ! [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9.]+)?(\+[a-z0-9.]+)?$ ]]; then
54
41
exit 1 ;;
55
42
esac
56
43
44
+ - name : configure NPMJS token
45
+ run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
46
+
57
47
- name : NPM dist-tag
58
48
run : |
59
- npm dist-tag --otp=${TOTP_CODE} add "@elastic/synthetics@${VERSION}" "${DIST_TAG}"
49
+ npm dist-tag add "@elastic/synthetics@${VERSION}" "${DIST_TAG}"
Original file line number Diff line number Diff line change @@ -28,18 +28,11 @@ jobs:
28
28
with :
29
29
fetch-depth : 0
30
30
- uses : elastic/apm-pipeline-library/.github/actions/setup-git@current
31
- - uses : elastic/apm-pipeline-library/.github/actions/setup-npmrc@current
32
- with :
33
- secret : secret/jenkins-ci/npmjs/elasticmachine
34
- vault-url : ${{ secrets.VAULT_ADDR }}
35
- vault-role-id : ${{ secrets.VAULT_ROLE_ID }}
36
- vault-secret-id : ${{ secrets.VAULT_SECRET_ID }}
37
31
- run : npm ci # runs npm prepublish
38
- - uses : ./.github/actions/setup-totp
39
- with :
40
- vault-url : ${{ secrets.VAULT_ADDR }}
41
- vault-role-id : ${{ secrets.VAULT_ROLE_ID }}
42
- vault-secret-id : ${{ secrets.VAULT_SECRET_ID }}
32
+
33
+ - name : configure NPMJS token
34
+ run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
35
+
43
36
- run : npx semantic-release --dry-run="${DRY_RUN}"
44
37
env :
45
38
DRY_RUN : ${{ github.event.inputs.dry-run }}
52
45
53
46
- name : Create 'stack_release' dist-tag
54
47
if : ${{ github.event.inputs.dry-run == 'false' && github.event.inputs.is-stack-release == 'true' }}
55
- run : npm dist-tag --otp=${TOTP_CODE} add "${NPM_PACKAGE}@${VERSION}" stack_release
48
+ run : npm dist-tag add "${NPM_PACKAGE}@${VERSION}" stack_release
56
49
57
50
- if : ${{ always() && github.event.inputs.dry-run == 'false' }}
58
51
uses : elastic/oblt-actions/slack/notify-result@v1
Original file line number Diff line number Diff line change 12
12
[
13
13
"@semantic-release/exec",
14
14
{
15
- "publishCmd": "npm publish --otp=${process.env.TOTP_CODE} "
15
+ "publishCmd": "npm publish"
16
16
}
17
17
],
18
18
"@semantic-release/github"
You can’t perform that action at this time.
0 commit comments