Skip to content

Pin GitHub Actions to full-length commit SHAs #68

Pin GitHub Actions to full-length commit SHAs

Pin GitHub Actions to full-length commit SHAs #68

name: PR build - tokenizer_ts
on:
pull_request:
branches: [ main ]
defaults:
run:
working-directory: tokenizer_ts
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@microsoft'
always-auth: true
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm pack
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: npm-package
path: tokenizer_ts/*.tgz