Skip to content

Commit

Permalink
chore(ci): apply flightjs branding
Browse files Browse the repository at this point in the history
  • Loading branch information
CompeyDev committed Jul 13, 2023
0 parents commit 1dd719a
Show file tree
Hide file tree
Showing 2,125 changed files with 279,737 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/angry-goats-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@pnpm/plugin-commands-publishing": minor
"@pnpm/types": minor
"pnpm": patch
---

Support `publishConfig.registry` in `package.json` for publishing [#6775](https://github.com/pnpm/pnpm/issues/6775).
9 changes: 9 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.0.3/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"bumpVersionsWithWorkspaceProtocolOnly": true
}
5 changes: 5 additions & 0 deletions .changeset/healthy-tomatoes-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pnpm": patch
---

`pnpm rebuild` should upload the built artifacts to the content-addressable store.
6 changes: 6 additions & 0 deletions .changeset/rare-cycles-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pnpm/link-bins": patch
"pnpm": patch
---

When a command cannot be created in `.bin`, print the exact error message that happened.
6 changes: 6 additions & 0 deletions .changeset/three-seas-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pnpm/core": patch
"pnpm": patch
---

Treat the linked dependency which version type is tag as update-to-date [#6592](https://github.com/pnpm/pnpm/issues/6592)
6 changes: 6 additions & 0 deletions .changeset/young-grapes-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-setup": patch
"pnpm": patch
---

`pnpm setup` prints more details when it cannot detect the active shell.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf

[*.{ts,js,json}]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fixtures
__fixtures__
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": "@pnpm/eslint-config"
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text eol=lf

*.tgz binary
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* @zkochan
/pkg-manager/plugin-commands-installation/src/import/* @fireairforce
/reviewing/dependencies-hierarchy/* @gluxon
/reviewing/list/* @gluxon
/reviewing/plugin-commands-listing/* @gluxon
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: pnpm
open_collective: pnpm
custom: "https://pnpm.io/crypto-donations"
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: "Bug report \U0001F41B"
about: A feature is not working as is expected, I want to report a bug
title: ''
labels: 'type: bug'
assignees: ''

---

<!--
If this issue affects many people in a company/big team, create a post for your company in the following discussion:
https://github.com/pnpm/pnpm/discussions/3787
and link the issue in your post.
This will help us prioritize issues that affect more people.
-->

### pnpm version:

### Code to reproduce the issue:

### Expected behavior:

### Actual behavior:

### Additional information:

- `node -v` prints:
- Windows, macOS, or Linux?:
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
blank_issues_enabled: false
contact_links:
- name: Question 🤷🏻‍♂️
url: https://github.com/pnpm/pnpm/discussions/new?category=q-a
about: Ask questions and discuss with other community members
- name: Chat 🏘
url: https://r.pnpm.io/chat
about: For a quick question you should do it through our community chat
- name: My company is migrating to pnpm and we have several issues/feature requests
url: https://github.com/pnpm/pnpm/discussions/3787
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: "Feature request \U0001F52E"
about: Propose a concrete new feature
title: ''
labels: 'type: feature'
assignees: ''

---

<!--
These issues are for **concrete and actionable proposals**. If you just have
a general problem that you would like to brainstorm, open a Discussion instead (https://github.com/pnpm/pnpm/discussions).
-->

<!--
If this feature request many people in a company/big team, create a post for your company in the following discussion:
https://github.com/pnpm/pnpm/discussions/3787
and link the issue in your post.
This will help us prioritize issues that affect more people.
-->

- [ ] I'd be willing to implement this feature ([contributing guide](https://github.com/pnpm/pnpm/blob/main/CONTRIBUTING.md))

**Describe the user story**

A clear and concise description of what workflow is meant to be improved.
Example: "As a developer, I often want to do <something>, but I often face <problem>".

**Describe the solution you'd like**

A clear and concise description of what you want to happen. Consider that pnpm is used
by many people, and your particular use case might not make sense to implement in the core.

**Describe the drawbacks of your solution**

This section is important not only to identify future issues, but also for us to see whether
you thought through your request. When filling it, ask yourself what are the problems we could
have maintaining what you propose. How often will it break?

**Describe alternatives you've considered**

A clear and concise description of any alternative solutions or features you've considered,
and why you think they wouldn't be good enough.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/regression-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Regression report
about: It used to work but now it is broken
title: ''
labels: 'regression, type: bug'
assignees: ''

---

### Last pnpm version that worked:

### pnpm version:

### Code to reproduce the issue:

### Expected behavior:

### Actual behavior:

### Additional information:

- `node -v` prints:
- Windows, macOS, or Linux?:
7 changes: 7 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: |
💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.
# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congrats on merging your first pull request! 🎉🎉🎉
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI

on: [push, pull_request]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.platform }}-${{ matrix.node }}
cancel-in-progress: true

strategy:
fail-fast: false
matrix:
node:
- '16.14'
- '18'
- '20'
platform:
- ubuntu-latest
- windows-latest

name: '${{matrix.platform}} / Node.js ${{ matrix.node }}'
runs-on: ${{matrix.platform}}

steps:
- name: Configure Git
run: |
git config --global core.autocrlf false
git config --global user.name "xyz"
git config --global user.email "x@y.z"
- name: Checkout Commit
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: next-8
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install npm@7
run: npm add --global npm@7
- name: pnpm install
run: pnpm install
- name: Audit
run: pnpm audit
# - name: Cache TypeScript and Jest
# uses: actions/cache@v3
# with:
# path: |
# packages/*/lib
# packages/*/tsconfig.tsbuildinfo
# privatePackages/*/lib
# privatePackages/*/tsconfig.tsbuildinfo
# .jest-cache
# .verdaccio-cache
# key: ts-jest-${{ matrix.platform }}-${{ matrix.node }}-${{ github.run_id }}
# restore-keys: ts-jest-${{ matrix.platform }}-${{ matrix.node }}-
- name: run tests (main)
timeout-minutes: 60
if: github.ref == 'refs/heads/main'
run: pnpm run test-main
- name: run tests (branch)
timeout-minutes: 60
if: github.ref != 'refs/heads/main'
run: pnpm run test-branch
74 changes: 74 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main, v5 ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '34 7 * * 6'

permissions:
contents: read

jobs:
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: read

jobs:
release:
permissions:
contents: write # for softprops/action-gh-release to create GitHub release
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install ldid
run: |
sudo apt-get update
sudo apt-get install git build-essential libplist-dev libssl-dev openssl qemu-user-binfmt
cd /tmp
git clone https://gitlab.com/opensource-saurik/ldid.git
cd ldid
git submodule update --init
gcc -I. -c -o lookup2.o lookup2.c
g++ -std=c++11 -o ldid lookup2.o ldid.cpp -I. -lcrypto -lplist -lxml2
sudo mv ldid /usr/local/bin
- name: install pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate
- name: pnpm install
run: pnpm install
- name: Publish Packages
env:
# setting the "npm_config_//registry.npmjs.org/:_authToken" env variable directly doesn't work.
# probably "pnpm release" doesn't pass auth tokens to child processes
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
pnpm release
- name: Copy Artifacts
run: pnpm run copy-artifacts
- name: Generate release description
run: pnpm run make-release-description
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: dist/*
body_path: RELEASE.md
Loading

0 comments on commit 1dd719a

Please sign in to comment.