-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update publishing logic (#374)
* Add changeset to workspace * Changeset init * Update config * Check PRs for changeset * Simplify workflow draft * Update changeset configs * Fix comma issue * Fix yaml * Fix lock file * add prefix * add origin * split into two jobs * Adjust readme docs for contributing * Delete unused * Use other changelog generator * Cleanup unused dependencies * Add comment * Add math to list * Add to ignore list * Can't ignore due to changesets error * add changeset
- Loading branch information
Cameron Manavian
committed
Jul 12, 2022
1 parent
3bed0aa
commit 0dd4870
Showing
19 changed files
with
750 additions
and
541 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "FuelLabs/fuels-ts" | ||
} | ||
], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "master", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
"@fuel-ts/abi-coder": patch | ||
"@fuel-ts/constants": patch | ||
"@fuel-ts/contract": patch | ||
"@fuel-ts/example-contract": patch | ||
"forc-bin": patch | ||
"fuels": patch | ||
"@fuel-ts/hasher": patch | ||
"@fuel-ts/hdwallet": patch | ||
"@fuel-ts/interfaces": patch | ||
"@fuel-ts/keystore": patch | ||
"@fuel-ts/math": patch | ||
"@fuel-ts/merkle": patch | ||
"@fuel-ts/merkle-shared": patch | ||
"@fuel-ts/merklesum": patch | ||
"@fuel-ts/mnemonic": patch | ||
"@fuel-ts/predicate": patch | ||
"@fuel-ts/providers": patch | ||
"@fuel-ts/script": patch | ||
"@fuel-ts/signer": patch | ||
"@fuel-ts/sparsemerkle": patch | ||
"@fuel-ts/testcases": patch | ||
"@fuel-ts/transactions": patch | ||
"typechain-target-fuels": patch | ||
"@fuel-ts/wallet": patch | ||
"@fuel-ts/wallet-manager": patch | ||
"@fuel-ts/wordlists": patch | ||
--- | ||
|
||
Add readme |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: "Release" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: CI Setup | ||
uses: ./.github/actions/ci-setup | ||
|
||
- name: Bump Version | ||
run: | | ||
pnpm changeset version | ||
# all workspace packages` package.json will be bumped with pervious step if there are changesets present | ||
- name: Collect Bumped Version | ||
run: | | ||
echo "BUILD_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' packages/fuels/package.json)" >> $GITHUB_ENV | ||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm release | ||
commit: "ci(changesets): versioning packages" | ||
title: "ci(changesets): versioning packages" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Release to @next tag on npm | ||
if: steps.changesets.outputs.published != 'true' | ||
run: | | ||
git checkout master | ||
pnpm changeset version --snapshot next | ||
pnpm changeset publish --tag next | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
Oops, something went wrong.