Skip to content

Commit

Permalink
ci: Attempt new version
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdecarme committed Nov 1, 2023
1 parent 5b35412 commit 373cd91
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"commit": true,
"fixed": [],
"linked": [],
"access": "public",
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,37 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Node.js LTS
uses: actions/setup-node@v3
with:
node-version: "lts/*"

- name: Install dependencies
run: yarn install --immutable

- name: Set yarn config
- name: Setup Yarn v4
run: |
yarn config set npmScopes.flare-city.npmAuthToken "\${NPM_TOKEN}"
yarn config set npmScopes.npmAuthToken "\${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.FLARE_CITY_NPM }}

- name: Create Release Pull Request or Publish to npm
- name: Install dependencies
run: yarn --immutable

- name: Packages - build
run: yarn build

- name: Packages - version
id: changesets
uses: changesets/action@v1
with:
title: "chore: Version packages"
commit: "chore: Version packages"
publish: yarn release
version: yarn version # version so pnp can reconcile packages
publish: yarn pusblish # build and publish to npm
env:
GITHUB_TOKEN: ${{ secrets.FLARE_CITY_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.FLARE_CITY_NPM }}

- name: Packages - tag
# if: steps.changesets.outputs.hasChangesets == 'false'
# You can do something when a publish should happen.
run: yarn tag
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"scripts": {
"build": "yarn turbo build --filter='!with-*'",
"version": "yarn changeset version",
"publish": "yarn workspaces foreach --all --no-private npm publish --access public",
"tag": "yarn changeset tag",
"release": "yarn build && yarn publish && yarn tag"
"tag": "yarn changeset tag"
},
"author": "Drew DeCarme",
"license": "MIT",
Expand Down

0 comments on commit 373cd91

Please sign in to comment.