Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing PR build with @Tobbe #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .github/workflows/build-eslint-jest.yaml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/create_pr_package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Create PR packages

on: pull_request_target

jobs:
create_pkg:
name: Create PR packages
runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Checkout PR
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Create packages
run: |
mkdir bin
for d in packages/*/ ; do
(cd "$d" && tgz=$(npm pack) && cp $tgz ../../bin/)
done

- name: copy files to s3
env:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET }}
run: |
sudo apt-get update && sudo apt-get -y install awscli
aws configure set aws_access_key_id $aws_key_id
aws configure set aws_secret_access_key $aws_secret_access_key
aws configure set default.region us-east-1
aws s3 cp --recursive ./bin/ s3://rw-pr/${{ github.event.number }}/

- name: Create comment msg
id: comment_msg
run: |
msg="📦 Packages for this PR can be downloaded from%0A"
for p in bin/*; do
msg+="https://rw-pr.s3.amazonaws.com/${{ github.event.number }}/${p#bin/}%0A"
done
msg+="%0AInstall locally with yarn, e.g. \`yarn workspace web add <url>\`"
echo "::set-output name=msg::$msg"

- name: Comment on PR
uses: mshick/add-pr-comment@v1
with:
message: ${{ steps.comment_msg.outputs.msg }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false # The links don't change (but the file they link to does). So no need to repost
21 changes: 0 additions & 21 deletions .github/workflows/netlify-build.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/publish-npm-canary.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<img src="https://avatars2.githubusercontent.com/u/45050444?v=4" width="200" />
<h1 align="center">Redwood</h1>
<h1 align="center">Redwood is awesome</h1>
</p>

_by Tom Preston-Werner, Peter Pistorius, Rob Cameron, David Price, and more than a hundred amazing contributors (see end of file for a full list)._
Expand Down