15: Add timedelta as workflow parameter. #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM Publish | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
npm-publish: | |
runs-on: ubuntu-latest | |
environment: release | |
defaults: | |
run: | |
working-directory: ./typescript | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
cache: "npm" | |
cache-dependency-path: "./typescript/package-lock.json" | |
- uses: arduino/setup-protoc@v3 | |
with: | |
version: "25.2" | |
- name: Build and publish to NPM | |
run: | | |
npm ci | |
npm run set-version --version="${{ github.ref_name }}" | |
npm run build | |
npm publish --public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |