Skip to content

Commit 8288ec5

Browse files
ci: fix some problems with the workflows and add dry-run (#3254)
1 parent eca9342 commit 8288ec5

File tree

5 files changed

+43
-18
lines changed

5 files changed

+43
-18
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Dry Run
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish-dry-run:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12.x
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: yarn install --frozen-lockfile
18+
- run: npx rollingversions publish --dry-run
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/rollingversions.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- run: yarn install --forzen-lockfile
20+
- run: yarn install --frozen-lockfile
2121
- run: yarn prettier:check
2222
- run: yarn test
2323

2424
publish:
2525
runs-on: ubuntu-latest
26+
needs: test
2627
steps:
2728
- uses: actions/checkout@v2
2829
- uses: actions/setup-node@v1
2930
with:
3031
node-version: 12.x
31-
- run: yarn install --forzen-lockfile
32-
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
32+
registry-url: 'https://registry.npmjs.org'
33+
- run: yarn install --frozen-lockfile
3334
- run: npx rollingversions publish
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
uses: actions/setup-node@v1
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
- run: yarn install --forzen-lockfile
25+
- run: yarn install --frozen-lockfile
2626
- run: yarn prettier:check
2727
- run: yarn test

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@
33

44
Full documentation is at [pugjs.org](https://pugjs.org/)
55

6-
Pug is a high-performance template engine heavily influenced by [Haml](http://haml.info/)
7-
and implemented with JavaScript for [Node.js](http://nodejs.org) and browsers. For bug reports,
8-
feature requests and questions, [open an issue](https://github.com/pugjs/pug/issues/new).
9-
For discussion join the [chat room](https://gitter.im/pugjs/pug).
6+
Pug is a high-performance template engine heavily influenced by [Haml](http://haml.info/)
7+
and implemented with JavaScript for [Node.js](http://nodejs.org) and browsers. For bug reports,
8+
feature requests and questions, [open an issue](https://github.com/pugjs/pug/issues/new).
9+
For discussion join the [chat room](https://gitter.im/pugjs/pug).
1010

11-
You can test drive Pug online [here](https://pugjs.org/).
11+
You can test drive Pug online [here](https://pugjs.org/).
1212

13-
[Professionally supported pug is now available](https://tidelift.com/subscription/pkg/npm-pug?utm_source=npm-pug&utm_medium=referral&utm_campaign=readme)
14-
15-
[![Build Status](https://img.shields.io/travis/pugjs/pug/master.svg?style=flat)](https://travis-ci.org/pugjs/pug)
16-
[![Coverage Status](https://img.shields.io/coveralls/pugjs/pug/master.svg?style=flat)](https://coveralls.io/r/pugjs/pug?branch=master)
17-
[![NPM version](https://img.shields.io/npm/v/pug.svg?style=flat)](https://www.npmjs.com/package/pug)
18-
[![Join Gitter Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat)](https://gitter.im/pugjs/pug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
19-
[![OpenCollective](https://opencollective.com/pug/backers/badge.svg)](#backers)
20-
[![OpenCollective](https://opencollective.com/pug/sponsors/badge.svg)](#sponsors)
13+
[Professionally supported pug is now available](https://tidelift.com/subscription/pkg/npm-pug?utm_source=npm-pug&utm_medium=referral&utm_campaign=readme)
14+
15+
[![Build Status](https://img.shields.io/github/workflow/status/pugjs/pug/Test/master?style=for-the-badge)](https://github.com/pugjs/pug/actions?query=workflow%3ATest+branch%3Amaster)
16+
[![Rolling Versions](https://img.shields.io/badge/Rolling%20Versions-Enabled-brightgreen?style=for-the-badge)](https://rollingversions.com/YOUR_GITHUB_LOGIN/YOUR_REPOSITORY_NAME)
17+
[![NPM version](https://img.shields.io/npm/v/pug?style=for-the-badge)](https://www.npmjs.com/package/pug)
18+
[![Join Gitter Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=for-the-badge)](https://gitter.im/pugjs/pug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2119

2220
### Dependency Status
2321

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "pug-monorepo",
33
"private": true,
4+
"@rollingversions/ignore": true,
45
"workspaces": [
56
"packages/*"
67
],
@@ -16,7 +17,8 @@
1617
"scripts": {
1718
"prettier:check": "prettier --ignore-path .gitignore --list-different './**/*.js'",
1819
"format": "prettier --ignore-path .gitignore --write './**/*.js'",
19-
"pretest": "wsrun --stages --exclude-missing --fast-exit --collect-logs build",
20+
"build": "wsrun --stages --exclude-missing --fast-exit --collect-logs build",
21+
"pretest": "yarn build",
2022
"test": "jest",
2123
"coverage": "jest --coverage",
2224
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",

0 commit comments

Comments
 (0)