Skip to content

Release 3.2.0 (#113) #36

Release 3.2.0 (#113)

Release 3.2.0 (#113) #36

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
uses: Datadog/action-prebuildify/.github/workflows/build.yml@main
with:
cache: false
napi: false
package-manager: 'npm'
prebuild: 'node scripts/prebuild'
skip: 'linux-arm,linux-ia32'
target-name: 'iastnativemethods'
min-node-version: 16
pack:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
- run: npm pack
- uses: codex-team/action-nodejs-package-info@v1
id: package
- uses: actions/upload-artifact@v4
with:
name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
path: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
create_release:
needs: pack
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: codex-team/[email protected]
id: package
- uses: actions/download-artifact@v4
with:
name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package.outputs.version }}
release_name: Release ${{ steps.package.outputs.version }}
body: |
Release
draft: false
prerelease: false
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
asset_name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}
asset_content_type: application/tar+gzip
publish:
needs: pack
runs-on: ubuntu-latest
environment: npm
permissions:
id-token: write
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: codex-team/[email protected]
id: package
- uses: actions/download-artifact@v4
with:
name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
- run: npm publish ./datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz --provenance