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

Publish RC versions via Github Actions #46

Merged
merged 4 commits into from
Mar 20, 2024
Merged
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
33 changes: 0 additions & 33 deletions .github/workflows/actions.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint and test

on: [pull_request]

jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
nodejs: [18]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}
- name: Lint and test
run: |
yarn install
yarn build
yarn lint
yarn test
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Publish to NPM
name: Publish RC to NPM

on:
push:
tags:
- '*.*.*'
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'

jobs:

publish:
runs-on: ubuntu-latest
strategy:
Expand All @@ -21,6 +20,8 @@ jobs:
run: |
yarn install
yarn build
yarn publish
yarn lint
yarn test
yarn publish-rc
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
40 changes: 17 additions & 23 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
name: Publish Stable to NPM

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
converge:
name: Converge
publish:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [ 18 ]
steps:

- name: Checkout code
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/[email protected]

- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Run echo
run: |
werf version
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_REF_NAME
- name: Run Build
node-version: ${{ matrix.nodejs }}
- name: Publish
run: |
. $(werf ci-env github --as-file)
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
yarn install
yarn build
yarn lint
yarn test
yarn publish-stable
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
16 changes: 0 additions & 16 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enableTelemetry: false

nodeLinker: node-modules

npmAuthToken: "${NPM_AUTH_TOKEN:-}"
npmAuthToken: '${NPM_AUTH_TOKEN:-}'

packageExtensions:
debug@*:
Expand All @@ -23,6 +23,6 @@ packageExtensions:

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs
spec: "https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js"
spec: 'https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js'

yarnPath: .yarn/releases/yarn-4.1.1.cjs
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `RemoveCredentials` credentials RPC method
- `ExportIdentity` RPC method
- `GetIdentity` RPC method
- GitHub Actions for pull request checks and publishing RC/stable versions

### Changed
- `@rarimo/rarime`:
Expand All @@ -23,9 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed
- `packages/site` package

### Removed
- `packages/site` package
- Unused CI scripts

## [2.0.3] - 2024-02-06
### Changed
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"lint:eslint": "eslint . --cache --ext js,ts",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' --ignore-path .gitignore",
"publish": "yarn workspaces foreach --no-private exec yarn npm publish",
"publish-rc": "yarn build && yarn workspaces foreach --no-private --all exec yarn npm publish --tag next",
"publish-stable": "yarn build && yarn workspaces foreach --no-private --all exec yarn npm publish",
"rsc": "node scripts/release-sanity-check.js",
"start": "yarn build:connector && yarn workspaces foreach --parallel --interlaced --verbose --all run start",
"test": "yarn workspaces foreach -pv --no-private --all run test"
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/abis/LightweightStateV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -561,4 +561,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
Loading
Loading