chore: Add Changesets (#29275)

pull/29596/head
Diego Sampaio 3 years ago
parent dfc9f86689
commit 867c8ad3bd
No known key found for this signature in database
GPG Key ID: B71D302EB7F5183C
  1. 8
      .changeset/README.md
  2. 13
      .changeset/config.json
  3. 47
      .github/workflows/changesets.yml
  4. 2
      .github/workflows/ci.yml
  5. 2
      package.json
  6. 729
      yarn.lock

@ -0,0 +1,8 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "RocketChat/Rocket.Chat" }],
"commit": false,
"fixed": [
["@rocket.chat/meteor", "@rocket.chat/core-typings", "@rocket.chat/rest-typings"]
],
"linked": [],
"access": "public",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": []
}

@ -0,0 +1,47 @@
name: Changesets
on:
push:
branches:
- develop
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release-versions:
name: Variables Setup
runs-on: ubuntu-latest
outputs:
node-version: ${{ steps.var.outputs.node-version }}
steps:
- uses: Bhacaz/checkout-files@v2
with:
files: package.json
branch: ${{ github.ref }}
- id: var
run: |
NODE_VERSION=$(node -p "require('./package.json').engines.node")
echo "NODE_VERSION: ${NODE_VERSION}"
echo "node-version=${NODE_VERSION}" >> $GITHUB_OUTPUT
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup NodeJS
uses: ./.github/actions/setup-node
with:
node-version: ${{ needs.release-versions.outputs.node-version }}
cache-modules: true
install: true
- name: Create Release Pull Request
uses: changesets/action@v1
with:
title: 'chore: Bump packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@ -47,7 +47,7 @@ jobs:
echo "LOWERCASE_REPOSITORY: ${LOWERCASE_REPOSITORY}"
echo "lowercase-repo=${LOWERCASE_REPOSITORY}" >> $GITHUB_OUTPUT
NODE_VERSION=$(node -p "require('./package.json').volta.node")
NODE_VERSION=$(node -p "require('./package.json').engines.node")
echo "NODE_VERSION: ${NODE_VERSION}"
echo "node-version=${NODE_VERSION}" >> $GITHUB_OUTPUT

@ -17,6 +17,8 @@
"fuselage": "./fuselage.sh"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@types/chart.js": "^2.9.37",
"@types/js-yaml": "^4.0.5",
"husky": "^7.0.4",

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save