Skip to content

Commit 2a4010d

Browse files
Another try to fix NPM publish (#23)
1 parent ba78b3b commit 2a4010d

File tree

4 files changed

+12
-21
lines changed

4 files changed

+12
-21
lines changed

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ tests
66
.prettierrc
77
jestconfig.json
88
tsconfig.json
9-
yarn.lock
9+
yarn.lock
10+
node_modules

ci/templates/publish.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
jobs:
2-
- job: artifacts
3-
steps:
4-
- script: npm install
5-
displayName: 'Install dependencies'
6-
- script: npm run build
7-
displayName: 'Build'
8-
- script: npm pack
9-
displayName: 'Package for npm release'
10-
- task: CopyFiles@2
11-
inputs:
12-
targetFolder: $(Build.ArtifactStagingDirectory)
13-
- task: PublishBuildArtifacts@1
14-
inputs:
15-
pathtoPublish: $(Build.ArtifactStagingDirectory)
16-
displayName: 'Publish build artifacts'
17-
182
- job: npm
19-
dependsOn: artifacts
203
steps:
4+
- script: |
5+
npm install
6+
npm run build
7+
displayName: 'npm install and build'
8+
- script: |
9+
npm publish --dry-run
10+
displayName: 'npm publish --dry-run'
2111
- task: Npm@1
12+
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
2213
inputs:
2314
command: publish
2415
publishEndpoint: 'npm-connection'
25-
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
2616
displayName: 'Publish to NPM'

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@crowdin/crowdin-api-client",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "JavaScript library for Crowdin API v2.",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",

0 commit comments

Comments
 (0)