Skip to content
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
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validate R version tag

on:
push:
tags:
- "v*"

permissions:
contents: read

jobs:
validate-version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Validate tag against DESCRIPTION
env:
RELEASE_TAG: ${{ github.ref_name }}
run: |
package_version="$(awk -F ': *' '$1 == "Version" {print $2}' DESCRIPTION)"
if [ "$RELEASE_TAG" != "v$package_version" ]; then
echo "::error::Release tag $RELEASE_TAG does not match DESCRIPTION version $package_version"
exit 1
fi
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: CyteTypeR
Title: CyteType for R
Version: 0.4.3
Version: 0.5.1
Description: CyteTypeR is the R version of CyteType python package.
Authors@R:
person("Nygen Analytics AB", , ,"contact@nygen.io", role = c("aut", "cre"))
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
if (package_version(latest) > package_version(current)) {
packageStartupMessage(
"A newer version of CyteTypeR is available (", current, " -> ", latest, "). ",
"Run remotes::install_github('NygenAnalytics/CyteTypeR') to update."
"Run devtools::install_github('NygenAnalytics/CyteTypeR') to update."
)
}
}, error = function(e) NULL)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
For AnnData workflows, use [CyteType](https://github.com/NygenAnalytics/CyteType).

> [!IMPORTANT]
> Already installed CyteTypeR? Open R and run `devtools::install_github("NygenAnalytics/CyteTypeR", force = TRUE)` to update to the latest version before you start.
>
> CyteType requires an API key. API use is free for academic and non-commercial research. Commercial API use requires a [license](#license).

## Why CyteTypeR?
Expand Down
Loading