Skip to content

Commit

Permalink
chore: set npm auth from the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Space Corp Engineering committed Jul 10, 2024
1 parent 803f0e0 commit d8885e8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
- run: pnpm install
- run: echo "publishing version ${{ env.RELEASE_VERSION }}"
- run: pnpm version ${{ env.RELEASE_VERSION }}
- run: npm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_PUBLISH_TOKEN}}
- run: pnpm config set //registry.npmjs.org/:_authToken ${{secrets.NPM_PUBLISH_TOKEN}}
- run: npm profile get
- run: pnpm build
- run: pnpm publish:package
env:
node-version: ${{ matrix.node-version }}
Expand Down
1 change: 1 addition & 0 deletions packages/gleamy/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ test
examples
__tests__/**
.gitignore
src
2 changes: 1 addition & 1 deletion packages/gleamy/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gleamy",
"description": "Create a reactive shiny element in different materials",
"version": "2.0.2",
"version": "2.0.10-gamma",
"license": "MIT",
"private": false,
"sideEffects": false,
Expand Down
5 changes: 2 additions & 3 deletions packages/gleamy/scripts/entitiesToPack.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"FUNDING.md",
"LICENSE.md",
"README.md",
"SECURITY.md",
"dist"
"SECURITY.md"
]
}
}
2 changes: 1 addition & 1 deletion packages/gleamy/scripts/postpack.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ console.log('Gleamy: cleaning up.');
try {
result.entitiesToPack.forEach((entity) => {
if (entity === "dist") {
return void(0);
return void (0);
}
fs.rmSync(`../../packages/gleamy/${entity}`, { recursive: true });
});
Expand Down
2 changes: 1 addition & 1 deletion packages/gleamy/scripts/prepare.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ try {
result.entitiesToPack.forEach((entity) => {
console.log(entity);
if (entity === "dist") {
return void(0);
return void (0);
}
fs.cpSync(`../../${entity}`, `../../packages/gleamy/${entity}`, {
recursive: true,
Expand Down

0 comments on commit d8885e8

Please sign in to comment.