Skip to content

update typescript package (#152) #15

update typescript package (#152)

update typescript package (#152) #15

name: GBFS Typescript Language Bindings - Publish
on:
push:
branches:
- master
paths:
- "models/typescript/**"
jobs:
build-publish:
name: build-publish-job
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
cd ./scripts
yarn
- name: Load secrets from 1Password
uses: 1password/[email protected]
with:
export-env: true # Export loaded secrets as environment variables
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
NODE_AUTH_TOKEN: "op://TECHNOLOGIES/vwhmodynvelkwrqbpel45ncve4/credential"
- name: Publish to npm
run: cd ./models/typescript && npm publish
env:
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}