Skip to content

chore: update dependencies and drop support NodeJS v14 (#16) #22

chore: update dependencies and drop support NodeJS v14 (#16)

chore: update dependencies and drop support NodeJS v14 (#16) #22

Workflow file for this run

name: Publish to NPM
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
export-google-ads-api-version:
uses: ./.github/workflows/export-google-ads-api-version.yml
with:
environment: production
build:
name: Build
needs: export-google-ads-api-version
uses: ./.github/workflows/template.yml
with:
node-version: 20
google-ads-api-version: ${{ needs.export-google-ads-api-version.outputs.google-ads-api-version }}
test: false
build: true
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
environment: production
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build 20
path: build
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Publish
run: |
npm version ${GITHUB_REF#refs/tags/v} --no-git-tag-version
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
cleanup:
name: Cleanup
needs: publish
uses: ./.github/workflows/cleanup.yml
with:
environment: production