-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix package release workflow (and remove stickerbomb) (#286)
* Move stickerbomb to legacy directory This effectively deletes the package from all workflows in this repository but keeps it around in case needed for future reference. * Migrate away from Lerna - Upgrade husky - Replace lerna with basic npm commands * Add changeset
- Loading branch information
Showing
29 changed files
with
561 additions
and
4,354 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,5 @@ | ||
--- | ||
'@showbie/backpack-tokens': patch | ||
--- | ||
|
||
Upgrade package release workflow; this is just a test release |
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 |
---|---|---|
|
@@ -15,23 +15,23 @@ jobs: | |
steps: | ||
# https://github.com/actions/checkout | ||
- name: Checkout repo | ||
uses: actions/checkout@main | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# https://github.com/actions/setup-node/ | ||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v2.5.1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
registry-url: https://npm.pkg.github.com | ||
cache: npm | ||
|
||
# https://github.com/bahmutov/npm-install | ||
# Custom install command to prevent husky from installing. | ||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: yarn --ignore-scripts --no-audit | ||
# Bypass husky in CI: https://typicode.github.io/husky/how-to.html#ci-server-and-docker | ||
- name: Installing dependencies | ||
run: npm ci | ||
env: | ||
HUSKY: 0 | ||
|
||
# Create a temp .npmrc file so changesets doesn't use its default. | ||
- name: Create CI .npmrc | ||
|
@@ -49,9 +49,8 @@ jobs: | |
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: yarn release | ||
title: 'Chore: Publish release' | ||
version: yarn version:changeset | ||
publish: yarn release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -84,12 +83,12 @@ jobs: | |
env: | ||
SLACKBOT_TOKEN: ${{ secrets.SLACKBOT_TOKEN }} | ||
|
||
- name: Send Stickerbomb package notification | ||
uses: stormwarning/[email protected] | ||
if: contains(fromJson(needs.release.outputs.publishedPackages).*.name, 'stickerbomb') | ||
with: | ||
channel: socrative-dev | ||
message: A new version of *stickerbomb* was just released! | ||
actions: '[{"text": "View changelog 🎉", "url": "https://github.com/showbie/backpack/blob/trunk/packages/stickerbomb/CHANGELOG.md"}]' | ||
env: | ||
SLACKBOT_TOKEN: ${{ secrets.SLACKBOT_TOKEN }} | ||
# - name: Send Stickerbomb package notification | ||
# uses: stormwarning/[email protected] | ||
# if: contains(fromJson(needs.release.outputs.publishedPackages).*.name, 'stickerbomb') | ||
# with: | ||
# channel: socrative-dev | ||
# message: A new version of *stickerbomb* was just released! | ||
# actions: '[{"text": "View changelog 🎉", "url": "https://github.com/showbie/backpack/blob/trunk/packages/stickerbomb/CHANGELOG.md"}]' | ||
# env: | ||
# SLACKBOT_TOKEN: ${{ secrets.SLACKBOT_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.