chore(deps): bump actions/setup-node from 3.6.0 to 3.7.0 (#4793) #1159
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: Changeset (Release) | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
deployments: read | |
pull-requests: write | |
statuses: write | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
release: | |
name: Release | |
environment: main | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org/" | |
scope: "@talend" | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn --frozen-lockfile | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@f13b1baaa620fde937751f5d2c3572b9da32af23 #v1.4.5 | |
with: | |
# This expects you to have a script called release which does a build for your packages and calls changeset publish | |
publish: yarn release | |
commit: "chore: prepare release" | |
title: "chore: prepare release" | |
env: | |
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
update-cdn-content: | |
needs: release | |
environment: main | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
curl -XPOST -u "build-travis-ci:${{ secrets.CDN_CONTENT_PAT }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/talend/cdn-content/actions/workflows/download-talend-ui.yml/dispatches --data '{"ref": "main"}' |