Skip to content

ci: release v0.8.0 @artilleryio/types (#2541) #24

ci: release v0.8.0 @artilleryio/types (#2541)

ci: release v0.8.0 @artilleryio/types (#2541) #24

name: Publish @artilleryio/types to npm
on:
push:
branches:
- main
paths:
- packages/types/package.json
jobs:
build:
if: "contains(github.event.head_commit.message, 'ci: release v')"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@artilleryio'
- run: PACKAGE_FOLDER_NAME=types node .github/workflows/scripts/rename-packages-to-correct-version.js
- run: npm ci
- run: npm -w '@artilleryio/types' publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}