Skip to content

Commit 2108496

Browse files
azan-nadnan-kamili
andauthored
ci: release-please fix (#8)
* feat: initial commit (#2) (#4) * feat: initial commit * ci: install prettier * ci: setup git hook for lint-staged * style: formatting * ci: add dependabot config * chore: add generateResetPasswordToken() * chore(package): set node version * ci: remove Github Packages upload * chore(users): remove roles * build: npmignore * build: update eslint, gitignore * build: parcel -> tsc * build: explicit file extensions for imports microsoft/TypeScript#40878 (comment) * chore: add code example * ci: add build step * chore(example): password generation * docs(imports): import-ettiquette * docs(type): `JSDocs` for QueryParameter types Co-authored-by: Mufti Azan Farooqi <[email protected]> * ci: release-please fix (#6) * feat: initial commit * ci: install prettier * ci: setup git hook for lint-staged * style: formatting * ci: add dependabot config * chore: add generateResetPasswordToken() * chore(package): set node version * ci: remove Github Packages upload * chore(users): remove roles * build: npmignore * build: update eslint, gitignore * build: parcel -> tsc * build: explicit file extensions for imports microsoft/TypeScript#40878 (comment) * chore: add code example * ci: add build step * chore(example): password generation * docs(imports): import-ettiquette * docs(type): `JSDocs` for QueryParameter types * ci: release-please refactor Co-authored-by: Adnan Kamili <[email protected]>
1 parent 0c3fe84 commit 2108496

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,24 @@ jobs:
1212
id: release
1313
with:
1414
release-type: node
15-
package-name: test-release-please
15+
package-name: '@cryptlex/web-api-client'
1616

1717
# Publish to NPM
18+
# If statements ensure that release is published to registries only when a new release is created.
1819
- uses: actions/checkout@v3
19-
# If statements ensure that release is published to registries only when a new release is created.
2020
if: ${{ steps.release.outputs.release_created }}
2121
- uses: actions/setup-node@v3
22+
if: ${{ steps.release.outputs.release_created }}
2223
with:
2324
node-version: 16
2425
registry-url: "https://registry.npmjs.org"
26+
- name: Build library
2527
if: ${{ steps.release.outputs.release_created }}
26-
- run: npm ci
27-
- run: npm run build
28+
run: |
29+
npm ci
30+
npm run build
31+
- name: NPM Publish
2832
if: ${{ steps.release.outputs.release_created }}
29-
- run: npm publish
33+
run: npm publish
3034
env:
3135
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
32-
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)