Skip to content

Commit

Permalink
Release 1.0.0 (#179)
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Vaughan <[email protected]>
  • Loading branch information
lionel- and DavisVaughan authored Jan 17, 2025
1 parent 4e7445b commit c1274bd
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 27 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/release-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
- os: windows-latest
target: x86_64-pc-windows-msvc
code-target: win32-x64
# - os: windows-latest
# target: aarch64-pc-windows-msvc
# code-target: win32-arm64
# - os: ubuntu-20.04
# target: x86_64-unknown-linux-gnu
# code-target: linux-x64
# - os: ubuntu-20.04
# target: aarch64-unknown-linux-gnu
# code-target: linux-arm64
# - os: windows-latest
# target: aarch64-pc-windows-msvc
# code-target: win32-arm64
# - os: ubuntu-20.04
# target: x86_64-unknown-linux-gnu
# code-target: linux-x64
# - os: ubuntu-20.04
# target: aarch64-unknown-linux-gnu
# code-target: linux-arm64
arch: aarch64
- os: macos-latest
target: x86_64-apple-darwin
Expand Down Expand Up @@ -115,15 +115,16 @@ jobs:
# path: dist
- run: ls -al ./dist

# # Publish to the Code Marketplace.
# - name: Publish Extension (Code Marketplace, release)
# run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ./dist/air-*.vsix
# Publish to the Code Marketplace.
- name: Publish Extension (Code Marketplace, release)
run: npx vsce publish --pat ${{ secrets.VSCE_PAT }} --packagePath ./dist/air-*.vsix

# Publish the built extension to OpenVSX
publish-openvsx:
name: "Publish (OpenVSX)"
needs: ["build"]
runs-on: ubuntu-latest
environment: release
steps:
- name: Install Nodejs
uses: actions/setup-node@v4
Expand Down Expand Up @@ -157,6 +158,6 @@ jobs:
# path: dist
- run: ls -al ./dist

# # Publish to OpenVSX.
# - name: Publish Extension (OpenVSX, release)
# run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ./dist/air-*.vsix
# Publish to OpenVSX.
- name: Publish Extension (OpenVSX, release)
run: npx ovsx publish --pat ${{ secrets.OPEN_VSX_TOKEN }} --packagePath ./dist/air-*.vsix
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Development version

# 1.0.0

- Initial public release, yay!

- Added a synchronization mechanism between IDE and Air settings. See documentation for more information https://posit-dev.github.io/air/configuration.html#settings-synchronization.

- Renamed `ignore-magic-line-break` to `persistent-line-breaks` (#177).

- In the CLI, errors and warnings are now written to stderr. This allows you to
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/air/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "air"
version = "0.1.2"
version = "1.0.0"
publish = true
authors.workspace = true
categories.workspace = true
Expand Down
12 changes: 10 additions & 2 deletions docs-old/release.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# CLI

The release process of the air cli has some manual steps. When you want to cut a release:
The release process of the air cli has some manual steps. One complication is that for each release of the CLI binary, we create a new release of the extension as this is our primary way of distributing Air.

When you want to cut a release:

- Create a release branch

- Polish `CHANGELOG.md`, bump the version and add a new `Development version` header.
- Polish `CHANGELOG.md`, bump the version and add a new `Development version` header (yep, right away - `cargo dist` is smart enough to ignore this header).

- In `crates/air/Cargo.toml`, bump the version.

- Run `cargo check` to sync `Cargo.lock`.

- In `editors/code/package.json`, bump the minor version to the next even number for standard releases, or to the next odd number for odd releases.

- Do a PR and merge the release branch.

- Manually run the [release workflow](https://github.com/posit-dev/air/actions/workflows/release.yml)
Expand All @@ -26,4 +30,8 @@ The release process of the air cli has some manual steps. When you want to cut a

- Attach the binaries and scripts to that GitHub Release as artifacts.

- Manually run the [extension release workflow](https://github.com/posit-dev/air/actions/workflows/release-vscode.yml)

It runs on `workflow_dispatch`, and automatically pulls in the latest release binary of Air from the binary release workflow above.

There is no need to bump to an intermediate "dev version" after a release.
11 changes: 6 additions & 5 deletions editors/code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Change Log
# Changelog

All notable changes to the "air" extension will be documented in this file.
- The CLI version and the extension versions are only kept in sync with their major component (the first number).

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
- Regarding minor versions (the second number), odd numbers indicate a pre-release of the extension. Even numbers are for public-facing releases.

## [Unreleased]

- Initial release
## 1.0.0

- Initial release
6 changes: 3 additions & 3 deletions editors/code/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "air",
"displayName": "Air",
"name": "air-vscode",
"displayName": "Air - R Language Support",
"description": "R formatter and language server",
"version": "0.0.1",
"version": "1.0.1",
"publisher": "Posit",
"license": "MIT",
"homepage": "https://posit-dev.github.io/air",
Expand Down

0 comments on commit c1274bd

Please sign in to comment.