Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: read
# https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
id-token: write

Expand All @@ -36,26 +37,14 @@ jobs:
- run: yarn run lint:ci
- run: yarn run test

- run: yarn workspace @foxglove/omgidl-parser pack
- name: Publish `omgidl-parser` to NPM
if: ${{ startsWith(github.ref, 'refs/tags/omgidl-parser/v') }}
# `yarn npm publish` does not currently support --provenance: https://github.com/yarnpkg/berry/issues/5430
run: npm publish packages/omgidl-parser/package.tgz --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: yarn workspace @foxglove/omgidl-parser npm publish --provenance --access public

- run: yarn workspace @foxglove/omgidl-serialization pack
- name: Publish `omgidl-serialization` to NPM
if: ${{ startsWith(github.ref, 'refs/tags/omgidl-serialization/v') }}
# `yarn npm publish` does not currently support --provenance: https://github.com/yarnpkg/berry/issues/5430
run: npm publish packages/omgidl-serialization/package.tgz --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: yarn workspace @foxglove/omgidl-serialization npm publish --provenance --access public

- run: yarn workspace @foxglove/ros2idl-parser pack
- name: Publish `ros2idl-parser` to NPM
if: ${{ startsWith(github.ref, 'refs/tags/ros2idl-parser/v') }}
# `yarn npm publish` does not currently support --provenance: https://github.com/yarnpkg/berry/issues/5430
run: npm publish packages/ros2idl-parser/package.tgz --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: yarn workspace @foxglove/ros2idl-parser npm publish --provenance --access public
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,4 @@ dist

# TernJS port file
.tern-port
.DS_Store
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/foxglove/omgidl.git"
"url": "git+https://github.com/foxglove/omgidl.git"
},
"scripts": {
"clean": "yarn workspaces foreach --all run clean",
Expand Down Expand Up @@ -36,7 +36,7 @@
"email": "contact@foxglove.dev",
"url": "https://foxglove.dev/"
},
"packageManager": "yarn@4.5.3",
"packageManager": "yarn@4.12.0",
"devDependencies": {
"@foxglove/eslint-plugin": "2.1.0",
"@types/jest": "29.5.14",
Expand Down