Skip to content

Commit

Permalink
Merge pull request #22 from Project-OMOTES/WouterSpaak/issue17
Browse files Browse the repository at this point in the history
WouterSpaak/issue17
  • Loading branch information
WouterSpaak authored Oct 16, 2024
2 parents 1df3fbd + 721b081 commit 0b7408e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 1,349 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/node_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
npm-publish:
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
id-token: write
defaults:
run:
working-directory: ./typescript
Expand All @@ -25,8 +28,8 @@ jobs:
- name: Build and publish to NPM
run: |
npm ci
npm run set-version --version="${{ github.ref_name }}"
npm run build
npm publish --public
npm version from-git --force
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -222,4 +224,7 @@ fabric.properties
unit_test_coverage/
test-results.xml

.env.*
.env.*

typescript/src/job_pb.d.ts
typescript/src/job_pb.js
10 changes: 0 additions & 10 deletions typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,3 @@ Run the following command to build the protobuf artifacts:
```sh
npm run build
```

### Bumping version from tag

To correctly version `package.json` with the corresponding git tag, run:

```sh
npm run set-version major.minor.patch
```

You shouldn't have to run this yourself, it will be called through GitHub actions (see [node_release.yml](../.github/workflows/node_release.yml)).
4 changes: 2 additions & 2 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"name": "@omotes/proto",
"version": "0.0.0",
"description": "Protobuf implementation for OMOTES jobs.",
"main": "./src/job_pb.js",
"typings": "./src/job_pb.d.ts",
"scripts": {
"set-version": "./node_modules/.bin/ts-node ./version.ts",
"build": "./node_modules/.bin/ts-node ./proto.ts"
},
"repository": {
Expand All @@ -31,5 +29,6 @@
},
"dependencies": {
"google-protobuf": "^3.21.2"
}
},
"version": "0.1.6"
}
Empty file added typescript/src/.gitkeep
Empty file.
171 changes: 0 additions & 171 deletions typescript/src/job_pb.d.ts

This file was deleted.

Loading

0 comments on commit 0b7408e

Please sign in to comment.